Error Handling

Standard error responses, status codes, and troubleshooting.

Error Handling

TaskNation API errors follow the RFC 7807 Problem Details standard. Every error response includes a traceID for debugging with our support team.

Error Response Format

{
  "type": "https://api.tasknation.com/errors/validation-error",
  "title": "Validation Error",
  "status": 422,
  "detail": "The 'zipCode' field must be a 5-digit US zip code.",
  "traceID": "trace_abc123xyz",
  "errors": [
    {
      "field": "zipCode",
      "message": "Must be exactly 5 digits",
      "code": "INVALID_FORMAT"
    }
  ]
}

Common Status Codes

CodeMeaningAction
400Bad RequestCheck request body/params
401UnauthorizedRefresh your access token
403ForbiddenCheck scopes — wrong prefix?
404Not FoundResource doesn't exist
409ConflictDuplicate resource or stale data
422Validation ErrorFix input per error details
429Rate LimitedBack off per Retry-After header
500Internal ErrorRetry; contact support with traceID
Developer Portal | TaskNation