Overview

To Err is to API, to handle, Developer. - An ode to code.

Introduction

Ideally, there should not be any errors while calling these APIs. In case you encounter any such interruptions in the flow, please check the console of your web page and see if the error is coming from our end. Our Javascript APIs will leave a handy error message on the developer console if the error is caught at our level.

If you do see an error that isn't self-explanatory, please reach out to our developers’ team. In any case, we are monitoring our APIs. So, if any exceptions or errors are generated, we can check the logs and fix them for you even before you encounter them.

For the errors coming from the server, the Swym JS APIs use the following error codes:

Error Status Codes

Code
400Bad Request -- Your request is invalid.
401Unauthorized -- You are performing an action on a resource that is not granted to the current logged-in user. Additionally, for REST APIs, this could mean your API key is wrong.
403Forbidden -- You are not allowed to request this data.
404Not Found -- The specified requested data could not be found.
429Too Many Requests -- You're raising too many requests! Slow down!
500Internal Server Error -- We had a problem with our server. Try again later.
503Service Unavailable -- We're temporarily offline for maintenance. Please try again later.

Error types