Error Object
Under certain conditions, calling a method on an endpoint will return an error
object with an HTTP status code in the 4xx
or 5xx
ranges. This object contains the specific error code, a short explanation, as well as a link to a longer description for the error on the error types page.
Attributes
Name | Type | Description |
---|---|---|
object | string | The string |
location | string | Documentation URI for error. |
code | string | Error code. |
message | string | Explanation for the error. |
Example
-
JSON Response
{ "object": "error", "location": "https://www.omise.co/api-errors#authentication-failure", "code": "authentication_failure", "message": "authentication failed" }