Views:

Last Updated: 11/24/2021 12:59:46 AM

The following section covers errors that may occur when you execute LMPI.

Http Status code

Error Subject

Error Message

400

MissingHeaderAccessToken

x-access-token missing.

400

MissingHeaderPosixTime

x-posix-time missing.

400

MissingHeaderSignature

x-signature missing.

400

MissingHeaderTraceID

x-traceid missing.

400

InvalidParameters{FieldName}

{Detail description of the invalid parameter}.

401

AuthenticationFailureSignature

Failed to verify x-signature.

401

AuthenticationFailureAccessToken

Your access token may not have been configured, please contact system administrator for further assistance.

401

AuthenticationFailurePosixTime

Failed to verify x-posix-time.

401

InvalidHeaderAccessToken

Invalid x-access-token.

415

InvalidHeaderContentType

Content-type header should be supplied with application/json.

500

InternalMappingError

Unable to mappings error code, please contact system administrator for further assistance.

500

CSPIError

Unknown error occurred, please contact system administrator for further assistance.

500

InternalError

Internal server error occurred, please contact system administrator for further assistance.

500

ServerException

Internal server error occured, please contact system adminstrator for further assistance.

A request made to LMPI can be easily determined whether it is performed successfully or not by the response HTTP Status. There are two types of response that is intentionally encountered from LMPI:

  • HTTP 200 OK

  • HTTP 4xx Exception thrown from LMPI

Refer to the error message provided in response body if an HTTP status 4xx is received, an error message similar to the example below appears:

 -----------------------------------------------------------------------------
 HTTP/1.1 415
 Cache-Control: private
 Content-Length: 217
 Content-Type: text/html
 Date: Tue, 22 May 2012 22:53:07 GMT
 {
   "error_subject" : "InvalidHeaderContentType",
   "error_message": "Content-type header should be supplied with application/json."
 }
 -----------------------------------------------------------------------------

The Error_Subject field is the subject of the error defined in LMPI. The "Error_Message”: "Content-type header should be supplied with application/json" field describes the message while invoking LMPI.