Skip to main content

Errors and Status Codes

Common Status Codes

StatusMeaningTypical action
200Request succeededContinue the workflow; validation results can still be negative.
400Invalid requestCorrect the path, query parameters, or request body.
401Authentication failureObtain a valid access token and verify its scope. See Authentication and Authorization.
404Organisation or requested resource not foundVerify the Swiss enterprise identification number (UID), name, route, and relevant register.
429Quota or rate limit exceededRead the RateLimit-* headers and wait for the indicated reset interval.
500Internal server errorRetry only if safe; contact support if the error persists.
502An upstream gateway or dependency failed during a lookupRetry the lookup with backoff; contact support if the dependency remains unavailable.

Error Handling Pattern

  1. Log the request ID and endpoint.
  2. Parse the error body and correlate it with the operation.
  3. Retry only when the operation is safe and the failure is transient.
  4. Escalate with request metadata for support cases.