Errors & Rate Limits
Standard HTTP status codes, rate limiting windows, and validation error handling across master-backend.
HTTP Status Codes
| Status | Meaning | Common Cause |
|---|---|---|
200 OK | Request succeeded | Standard read/update success |
201 Created | Resource created | New record, form, ticket, or SSO client |
400 Bad Request | Invalid input | Missing required fields or invalid code_challenge_method |
401 Unauthorized | Auth required or invalid | Expired JWT, missing header, or aud: 'ttf-identity' on protected route |
403 Forbidden | Insufficient role | Missing SUPERADMIN or tenant role permission |
404 Not Found | Resource missing | Invalid ID or resource owned by another companyId |
429 Too Many Requests | Rate limited | Exceeded rateLimiter, authRateLimiter, or publicSubmitLimiter |
Rate Limiting Layers
- Global Limiter (
rateLimiter): Protects all/api/*endpoints from burst abuse. - Auth Limiter (
authRateLimiter): Stricter limits applied on login and token exchange endpoints. - Public Form Limiter (
publicSubmitLimiter): Protects/api/forms/public/:token/submitalongside honeypot spam filtering.
Last updated on
