get https://api.genability.com/rest/echo/errors/
Errors allow you to simulate receiving a number of possible error messages. This is especially helpful for seeing how your application responds to different error messages as well as quickly learning all the possible errors that may be returned from the APIs.
To simulate an error, pass in the desired error code on the url and the response will be a simulated error condition with that error code.
Here is a full list of the errors and a description of each.
Error Code | Description |
---|---|
200 | Success – indicates a successful response |
301 | Moved Permanently – indicates the requested resource has been permanently moved |
400 | Bad Request – indicates the request was improperly formatted or missing required parameter |
403 | Not Authorized – indicates the requester is not authorized to access the resource they are requesting |
404 | Not Found – indicates the requested resource was not found |
500 | Server Error – indicates a server error has occurred resulting in the request not being able to be fulfilled |