The REST API returns different response codes for successful and failure API requests.
SUCCESS - The API request was successful and completed without any errors.
CREATED - The API to create new resource was completed successfully and a new resource has been created.
BAD REQUEST - The input passed in the Request API is invalid or incorrect. The requestor has to change the input parameters and send the Request again.
UNAUTHORIZED - The request is a special request and the user who has requested the operation is not entitled to perform the requested operation.
INTERNAL ERROR - The request cannot be completed due an error that occured in the server, when processing the request.