Response Codes

HTTP Response Codes

All MedsAPI Dynamic Health endpoints could return any one of the following response codes. JSON responses for a 200 will vary depending on the endpoint.

Response Codes

CodeMessageInvoked ByNotes
200OKStandard SuccessGeneric successful execution.
400Bad RequestInvalid RequestRequired property is missing or contains an illegal value.
401UnauthorizedNo authentication credentials were passed OR incorrect authentication was passedThe request requires authentication and none was provided.
403ForbiddenThe client is not authorized to access the resource, although it may have valid credentialsThe authentication credentials do not have access to this resource.
404Not foundList of types comes back empty (can only occur if there is a data problem)The server has not found anything matching the request URI. This either means that the URI is incorrect or the resource is not available.
405Method Not AllowedUsing a POST, PUT or DELETE requestThe server has not implemented the requested HTTP method.
406Not Acceptablecontent-type header was something other than jsonThe server cannot return the content-type requested.
415Unsupported Media Typecontent-type header was a format that is not recognized by the serverThe server cannot understand the requested content-type.
422Unprocessable EntityError was thrown by the middle serviceThe requested action cannot be performed and may require interaction with APIs or processes outside of the current request. This is distinct from a 500 response in that there are no systemic problems limiting the API from performing the request.
429Too Many RequestsRate limit was exceededThe server must return this status code if the rate limit for the user, the application, or the token has exceeded a predefined value.
500Internal Server ErrorError was thrown by the edge serviceThis is either a system or application error and generally indicates that although the client appeared to provide a correct request, something unexpected has gone wrong on the server.