Skip to Content
Error Format

Error Format

Most JSON routes use the same error envelope:

{ "error": "Unauthorized", "code": "unauthorized" }

Known error codes visible in the shared API error helpers include:

  • unauthorized
  • forbidden
  • invalid_request
  • user_not_found
  • user_not_student
  • user_not_employer
  • company_not_found
  • company_already_exists
  • not_in_company
  • job_not_found
  • job_deleted
  • job_limit_reached
  • application_not_found
  • review_not_found
  • education_level_not_found
  • region_not_found
  • job_type_not_found
  • invalid_image_upload
  • image_too_large
  • internal_server_error

POST /api/jobs/{id}/apply is the exception in this docs set: it redirects instead of returning a JSON error body.