Successful requests will return a HTTP 200 response and may or may not include a response body depending on the request endpoint.

Whenever a problem occurs the Momint API responds to the client with a HTTP 4xx or 5xx status code. In this case the body of the response will be the exception type and the error message. All 4xx status codes indicate a problem with your request while a 5xx status code indicates an internal problem with our systems.

Example JSON representation of a ValidationError

{
  "errors": [
    {
      "type": "VALIDATION_ERROR",
      "message": "metadata.name is required"
    }
  ]
}
Error Type Details HTTP Status Code
VALIDATION_ERROR Request failed due to problems with the request 400
NOTFOUND_ERROR You referenced something that could not be located 404
UNKNOWN_ERROR A problem with our services internally. This should rarely happen 500