Error Codes and Messages
Here are some potential error codes and messages you might encounter from REST API calls:
-
HTTP/1.1 401 Unauthorized - authentication required. This happens when authentication credentials are either missing or invalid.
Error Response:
{
"error": {
"code": "",
"message": "Authorization has been denied for this request."
}
} -
HTTP/1.1 404 Not Found - endpoint not found. This error indicates that the requested endpoint is missing or incorrect.
-
HTTP/1.1 500 Internal Server Error - any other error. Details of problem are provided in the error message. The message aligns with those found in the SAP Business One Client with CompuTec ProcessForce extension running.
Error Message
{
"error": {
"code": "500",
"message": "Object with specified Key was not found in database Key:000000000"
}
}