Error Codes and Messages
On failure the XML or JSON response body will contain the error code and error message. The preceding methods can throw the following error codes and messages.
HTTP Code | Application Error Code | Description |
---|---|---|
404 |
PTN_REST_0001 | ENTITY_NOT_FOUND - This exception is thrown when an app or a service is not found. |
404 |
PTN_REST_0002 | PROPERTY_NOT_FOUND - This exception is thrown when a property is not found in JSON given as input. |
403 |
PTN_REST_0001 | DUPLICATE_ENTRY - This exception is thrown when a duplicate resource is posted. |
400 |
PTN_REST_0004 | INVALID_PARAMETER - This exception is thrown when query parameter attributes sent in the URL do not exist or are unsupported for that resource. |
400 |
PTN_REST_0005 | INVALID_PARAMETER_VALUE - This exception is thrown when query parameter values attributes sent in the URL is invalid. |
401 |
PTN_REST_0006 | NOT_AUTHORIZED - This exception is thrown when the user is not authorized to access the resource. |
500 |
PTN_REST_0008 | SYSTEM_ERROR - This is a system exception and is thrown when some unexpected exception occurs. |
400 |
PTN_REST_0009 | VALIDATION_ERROR - This exception is thrown when invalid input is given. |
400 |
PTN_REST_0010 | JSON_MAPPING_ERROR - This execption is thrown when the invalid json id given as input. |
400 |
PTN_REST_0011 | METHOD_NOT_ALLOWED - This exception is thrown when Http method used to make request is not valid. |
400 |
PTN_REST_0012 | GENERIC_ERROR - This exception is thrown when some unexpected application error occurs. |