Skip to main content

Errors

Errors always return an envelope with status: "failure" and an error object:

{
"status": "failure",
"data": null,
"meta": null,
"error": {
"code": "BAD_REQUEST",
"message": "workingTime must not be null"
}
}

HTTP status mapping

StatusBackend exceptionMeaning
400BadRequestExceptionMalformed input, missing required field.
401UnauthorizedExceptionMissing or invalid Origin or bearer token.
403ForbiddenExceptionOrigin not permitted to call this endpoint.
404NotFoundExceptionResource does not exist.
409ConflictExceptionDuplicate or state conflict.
422UnprocessableRequestExceptionValidation failed after parsing.
429RateLimitExceptionRate limit exceeded.
500InternalServerExceptionUnexpected server error.

Retry policy

  • 429 and 5xx: retry with exponential backoff (1s, 2s, 4s, 8s; give up after 5 tries).
  • 4xx other than 429: do not retry — fix the request.

Reporting bugs

Include the x-request-id response header, timestamp, and full request/response in your bug report to support@homesoon.jp.