Response codes and error handling

Our Profix AGF API returns an HTTP status code to indicate success or failure. Below are the list of those status codes and their values:

Code Response Type Description
200 OK Get command was successful.
204 OK Get command was successful, but no data to show
400 Bad Request The redirect URI is not the same as in our system
401 Unauthorized The Authentication Bearer is missing. When you get this error during authorization, then the client-id and secret are not a match
403 Forbidden The application is not allowed to talk to the API due to license restrictions
405 Method Not Allowed The method is not implemented by the application you are calling to
406 Your application ID does not match your credentials You are trying to reach another application then your client credentials give you access to
(Only applicable when your connection level is client_credentials and not authorization_code)
503 Service Unavailable The application is currently not connected to the API