API Status Codes
After an API endpoint is executed, you'll usually get a status code along with the data you requested (if it ran successfully). Status codes are the same across all web services so it's good for you to know them.
For Example: if you're trying to work with a weather external API service to get the daily forecast and get a
503response, It means there's something wrong on their end.
See below for all status codes
The request was successfully completed.
A new resource was successfully created.
The request was invalid.
The request did not include an authentication token or the authentication token was expired.
The client did not have permission to access the requested resource.
The requested resource was not found.
Method Not Allowed
The HTTP method in the request was not supported by the resource. For example, the DELETE method cannot be used with the Agent API.
The request could not be completed due to a conflict. For example, POST ContentStore Folder API cannot complete if the given file or folder name already exists in the parent location.
Internal Server Error
The request was not completed due to an internal error on the server side.
The server was unavailable.