Namespace: constants

Utils. constants

Members


<static, constant> ERR_CODES

Properties:
Name Type Description
ERR_CODES object
Properties
Name Type Description
parseError number

"-32700"

invalidRequest number

"-32600"

methodNotFound number

"-32601"

invalidParams number

"-32602"

internal number

"-32603"

timeout number

"-32000"

unknown number

"-32001"

Source:

<static, constant> ERR_MSGS

Properties:
Name Type Description
ERR_MSGS object
Properties
Name Type Description
parseError string

"Parse Error"

invalidRequest string

"Invalid Request"

methodNotFound string

"Method not found"

invalidParams string

"Invalid Parameters"

internal string

"Internal Error"

timeout string

"Request Timeout"

unknown string

"Unknown Error"

Source:

<static, constant> errorToStatus

Returns HTTP status code for a given error code

Properties:
Name Type Description
errorToStatus object
Properties
Name Type Description
-32700 number

500

-32600 number

400

-32601 number

404

-32602 number

500

-32603 number

500

-32000 number

408

-32001 number

500

Source: