Error reporting categories

This section describes the error categories and associated error codes that can be returned in the JSON error report document for z/OS® data set and file REST interface requests. This document is described in Error report document.

Categories

Table 1 shows the error categories that are defined for errors returned in z/OS data set and file REST interface operations.
Table 1. Error categories for z/OS data set and file REST interface operations
Category Ordinal Value Description Where the error details are described
Service 1 Errors produced or detected in the service layer. Category 1 — Service error
Message queue 2 Errors produced or detected by the message queue. Category 2 — Message queue error
CEA 3 Errors produced or detected by the common event adapter (CEA) interface. Category 3 — Common event adapter (CEA) error
ISPF 4 Errors produced or detected by the Interactive System Productivity Facility (ISPF) interface. Category 4 — ISPF error
CSI 5 Errors produced or detected by the catalog search interface (CSI). Category 5 — Catalog Search Interface (CSI) error
Read or write function 6 Errors returned from an attempted read or write request. Category 6 — Read or write error
Start of changeJSONEnd of change Start of change7End of change Start of changeErrors produced or detected when parsing JSON.End of change Start of changeCategory 7 - JSON Parser ConditionsEnd of change
Start of changeXL C/C++End of change Start of change8End of change Start of changeErrors produced or detected by z/OS XL C/C++End of change Start of changeCategory 8 - z/OS XL C/C++ ConditionsEnd of change
Unexpected 16 Unexpected errors detected. Category 9 — Unexpected error

Category 1 — Service error

Table 2 shows the possible conditions for this error category.

Table 2. Category 1 errors for z/OS data set and file REST interface operations
rc reason message Description
Start of change4End of change Start of change1End of change Start of changeStart of change%sEnd of changeEnd of change Start of changeStart of changeThe request specified a URL that is not valid. %s indicates which parts of the URL are invalid, such as path information, data set name and volume serial.End of changeEnd of change
Start of change4End of change Start of change2End of change Start of changeStart of changeInvalid data set name length.End of changeEnd of change Start of changeThe request specified a data set name length that is not valid. Note that data set names cannot exceed 44 characters in length.End of change
Start of change4End of change Start of change3End of change Start of changeStart of changeThe specific data set name is invalid.End of changeEnd of change Start of changeThe request specified a data set name (dslevel) that is not valid. End of change
Start of change4End of change Start of change4End of change Start of changeStart of changeRetrieving USS files should start with absolute path.End of changeEnd of change Start of changeThe requested file cannot be retrieved because the request is missing an absolute path name, which is required. When retrieving UNIX files, the file path must be an absolute (or fully-qualified) path name, rather than a relative (or partially-qualified) path name.End of change
Start of change4End of change Start of change5End of change Start of changeStart of changeLength of USS path is invalid.End of changeEnd of change Start of changeThe request specified a UNIX file path length that is not valid.End of change
Start of change4End of change Start of change6End of change Start of changeStart of changeThe specific path is invalid.End of changeEnd of change Start of changeThe request specified a UNIX file path that is not valid.End of change
Start of change4End of change Start of change7End of change Start of changeStart of changeThe specific volser is invalid.End of changeEnd of change Start of changeThe request specified a volume serial (volser) that is not valid. End of change
Start of change4End of change Start of change8End of change Start of changeFile not found.End of change Start of changeThe request specified a file that does not exist.End of change
Start of change4End of change Start of change9End of change Start of changeIncorrect content type.End of change Start of changeThe request specified an unsupported content type.End of change
Start of change4End of change Start of change10End of change Start of changeUnrecognized HTTP method.End of change Start of changeThe request is not recognized as a supported HTTP method.End of change
Start of change4End of change Start of change11End of change Start of changePOST method is not supported.End of change Start of changeThe POST method was specified, however POST is not a supported HTTP method.End of change
Start of change4End of change Start of change12End of change Start of changeIncorrect attribute was specified.End of change Start of changeThe request contained one or more attributes that are not valid.End of change
Start of change4End of change Start of change13End of change Start of changeIncorrect parameter was specified.End of change Start of changeThe request contained one or more parameters that are not valid.End of change
Start of changeStart of change4End of changeEnd of change Start of changeStart of change14End of changeEnd of change Start of changeStart of changeThe specific JSON data in the request is invalid.End of changeEnd of change Start of changeStart of changeJSON data in the request is invalid.End of changeEnd of change
Start of changeStart of change4End of changeEnd of change Start of changeStart of change15End of changeEnd of change Start of changeStart of changeThe size of the data to be written is invalid.End of changeEnd of change Start of changeStart of changeThe size of the data to be written is invalid.End of changeEnd of change
Start of changeStart of change4End of changeEnd of change Start of changeStart of change16End of changeEnd of change Start of changeStart of changeRequest content-length must be specified. Request content-length was too long. Request content was longer than specified content-length.End of changeEnd of change Start of changeStart of changeOnly used in ValidateJsonServlet.C.End of changeEnd of change
Start of changeStart of change4End of changeEnd of change Start of changeStart of change17End of changeEnd of change Start of changeStart of changeRequest document contained invalid JSON.End of changeEnd of change Start of changeStart of changeNot currently used.End of changeEnd of change
Start of changeStart of change4End of changeEnd of change Start of changeStart of change18End of changeEnd of change Start of changeStart of changeMember name is not valid.End of changeEnd of change Start of changeStart of changeMember name is not valid.End of changeEnd of change
Start of changeStart of change4End of changeEnd of change Start of changeStart of change19End of changeEnd of change Start of changeStart of changeUnix file/directory exists.End of changeEnd of change Start of changeStart of changeUnix file/directory already exists.End of changeEnd of change
Start of changeStart of change8End of changeEnd of change Start of changeStart of change1End of changeEnd of change Start of changeStart of changeUnable to get JSON Response.End of changeEnd of change Start of changeStart of changeNot currently used.End of changeEnd of change
Start of changeStart of change8End of changeEnd of change Start of changeStart of change2End of changeEnd of change Start of changeStart of changeUnable to get JSON Response Table.End of changeEnd of change Start of changeStart of changeNot currently used.End of changeEnd of change
Start of changeStart of change8End of changeEnd of change Start of changeStart of change3End of changeEnd of change Start of changeStart of changeUnable to load ISPEXEC.End of changeEnd of change Start of changeStart of changeThe ISPF service route ISPEXEC could not be loaded.End of changeEnd of change
Start of changeStart of change8End of changeEnd of change Start of changeStart of change4End of changeEnd of change Start of changeStart of changeUnable to load TSO servlet mappings.End of changeEnd of change Start of changeStart of changeThe servlet dispatcher was not able to load the servlet mappings JSON file.End of changeEnd of change
Start of changeStart of change8End of changeEnd of change Start of changeStart of change5End of changeEnd of change Start of changeStart of changeA servlet-mapping was not found for servlet-path.End of changeEnd of change Start of changeStart of changeA servlet mapping matching the request could not be found. Indicates a servlet-mapping configuration error.End of changeEnd of change
Start of changeStart of change8End of changeEnd of change Start of changeStart of change6End of changeEnd of change Start of changeStart of changeExceptionServlet threw an exception after commit. Servlet failed but could not send error response.End of changeEnd of change Start of changeStart of changeAn exception was thrown by the servlet.End of changeEnd of change
Start of changeStart of change8End of changeEnd of change Start of changeStart of change7End of changeEnd of change Start of changeStart of changeTsoServlet already committed.End of changeEnd of change Start of changeStart of changeAn exception was thrown by the servlet after its output stream header was committed.End of changeEnd of change

Category 2 — Message queue error

Table 3 shows the possible conditions for this error category.

Table 3. Category 2 errors for z/OS data set and file REST interface operations
rc reason message Description
12 1 The message queue cannot be created. The message queue cannot be created.
Start of change4End of change Start of change1End of change Start of changeTimeoutEnd of change Start of changeA timeout occurred when receiving a message from the message queue.

Start of changeMSG_QUEUE_PROTOCOL_ERROR_TIMEOUTEnd of change

End of change
Start of change4End of change Start of change2End of change Start of changeReceived unexpected msgType=nnEnd of change Start of changeReceived unexpected message.

Start of changeMSG_QUEUE_PROTOCOL_ERROR_UNEXPECTEDEnd of change

End of change
Start of change4End of change Start of change3End of change Start of changeServletDispatcher failed.End of change Start of changeBack-end ServletDispatcher failed with the reason <reason>, for example, TSO Prompt was received when TsoServletResponse was expected.

Start of changeMSG_QUEUE_PROTOCOL_ERROR_ENDEDEnd of change

End of change
Start of change4End of change Start of change4End of change Start of changeQueue full while sending.End of change Start of changeMessage queue is full while sending the specific <message type>.

Start of changeMSG_QUEUE_PROTOCOL_ERROR_FULLEnd of change

End of change
Start of change4End of change Start of change5End of change Start of changeIllegal state.End of change Start of changeThe message queue is in an illegal state.

Start of changeMSG_QUEUE_PROTOCOL_ERROR_ILLEGAL_STATEEnd of change

End of change
Start of change5End of change Start of change1End of change Start of changeError parsing TsoServletResponse.End of change Start of changeError occurred when paring TsoServletResponse.

Start of changeMSG_QUEUE_JSON_PARSE_ERROREnd of change

End of change
Start of change5End of change Start of change2End of change Start of changeError serializing TsoServletRequest.End of change Start of changeError occurred when serializing TsoServletRequest.

Start of changeMSG_QUEUE_JSON_SERIALIZE_ERROREnd of change

End of change
Start of change12End of change Start of change1End of change Start of changeThe Message queue cannot be created.End of change Start of changeThe message queue cannot be created.End of change
Start of change12End of change Start of change2End of change Start of change End of change Start of changeNot used currently.End of change
Start of change12End of change Start of change3End of change Start of changeMessage queue size is less than minimum.End of change Start of changeMessage queue size is less then the required minimum size.

Start of changeMSG_QUEUE_ERROR_SIZE_ERROREnd of change

End of change
Start of change12End of change Start of change4End of change Start of changeMessage prefix bytes are too short.End of change Start of changeMessage prefix bytes are shorter than expected.

Start of changeMSG_QUEUE_ERROR_DECODINGEnd of change

End of change
Start of change16End of change Start of changen(errno)End of change Start of changeVaries.End of change Start of changeThis is an error from msgsnd()/msgrcv()/etc. The errno will be used as the reason.

Start of changeMSG_QUEUE_SYS_ERROREnd of change

End of change

Category 3 — Common event adapter (CEA) error

Table 4 shows the possible conditions for this error category.

Table 4. Category 3 errors for z/OS data set and file REST interface operations
rc reason message Description
12 1 TSO launcher exception: Client is not authorized for instrumentation. The requestor lacks sufficient authority to access the requested common event adapter (CEA) service.
12 2 TSO launcher exception: Error occurred. The requested CEA service encountered an error.
12 3 TSO launcher exception: CEA address space is not available. The CEA address space is not active or is not available.
12 4 TSO launcher exception: TSO address space cannot be created. The TSO/E address space cannot be created because a required system resource is not available.
Start of change12End of change Start of change5End of change Start of changeCeaTsoEnd request failed.End of change Start of changeAn error occurred ending a TSO Address Space.

Start of changeCEA TSO Reason code = 4103.End of change

Start of changeCEA_ERROR_END_TSO_FAILEDEnd of change

End of change
Start of change12End of change Start of change6End of change Start of change End of change Start of changeNot currently used.

Start of changeCEA_ERROR_CMD_NOT_FOUNDEnd of change

End of change

Category 4 — ISPF error

Table 5 shows the possible conditions for this error category.

Table 5. Category 4 errors for z/OS data set and file REST interface operations
rc reason message Description
n m varies The return and reason code values match the return and reason code values that are set by the ISPF service.

Category 5 — Catalog Search Interface (CSI) error

Table 6 shows the possible conditions for this error category.

Table 6. Category 5 errors for z/OS data set and file REST interface operations
rc reason message Description
n m varies The return and reason code values match the return and reason code values that are set by the consolidated software inventory (CSI) service.

Category 6 — Read or write error

Table 7 shows the return and reason codes that can be set for a read or write request.

Table 7. Category 6 errors for z/OS data set and file REST interface operations
rc reason (hex) message Description
Start of change8End of change Start of change201End of change Start of changeStart of change<methodName> failedEnd of changeEnd of change Start of changeStart of changeUnable to open a data set or member, <methodName> like fopen() or freopen() failed.End of change

Start of changeRW_ERROR_OPEN_FAILEDEnd of change

End of change
Start of change8End of change Start of change202End of change Start of changeStart of change<methodName> failedEnd of changeEnd of change Start of changeStart of changeUnable to close a data set or member,<methodName> like fclose() failed. If occurs for a write/put operation, the data set contents are not predictable.End of change

Start of changefailedRW_ERROR_CLOSE_FAILEDEnd of change

End of change
8 204 Client ETag does not match the current ETag for the data set. The attempt to write to the data set failed because the supplied ETag does not match the current ETag of the requested data set. This mismatch indicates that the data set content was modified in the time since the caller obtained the ETag.

Start of changeRW_ERROR_DS_ETAG_NOT_MATCHEDEnd of change

Start of change8End of change Start of change208End of change Start of change.Start of change<methodName> errorEnd of changeEnd of change Start of changeStart of changeAn error, <methodName> like fread(), occurred during I/O to a data set or Unix file.End of change

Start of changeRW_ERROR_IOEnd of change

End of change
8 20C Member not found. The member cannot be located in the partitioned data set. Perhaps the data set name or member name was incorrectly specified.

Start of changeRW_ERROR_MBR_NOT_FOUNDEnd of change

Start of change8End of change Start of change0000020AEnd of change Start of changeDynamic allocation failed.End of change Start of changeThis RC is combined with S99ERROR in the high halfword.

Start of changeRW_ERROR_DS_DYNALLOC_ERREnd of change

End of change
8 1708020A Start of changeISPF LMINIT - End of changedata set not found. The specified data set cannot be found. Perhaps the data set name or member name was incorrectly specified.

Start of changeRW_ERROR_DS_NOT_FOUNDEnd of change

Start of change8End of change Start of changevariesEnd of change Start of changeVaries.End of change Start of changeFor UNIX file I/O errors, the reason code consists of the errno in the high order 16 bits and the errno2 in the low order 16 bits.End of change
8 5E30062 File not found. The specified UNIX file cannot be found. Perhaps the data set name or member name was incorrectly specified.

Start of changeRW_ERROR_FS_NOT_FOUNDEnd of change

8 5B6F0002 Client is not authorized for file access. The request for the UNIX file failed because the caller does not have sufficient authority to access the file.

Start of changeRW_ERROR_FS_AUTHEnd of change

8 406 Client ETag does not match the current ETag for the file. The attempt to write to the UNIX file failed because the supplied ETag does not match the current ETag of the requested file. This mismatch indicates that the file content was modified in the time since the caller obtained the ETag.

Start of changeRW_ERROR_FS_ETAG_NOT_MATCHEDEnd of change

Start of change

Category 7 - JSON Parser Conditions

Category 7 JSON parser conditions shows the possible conditions for this error category.

Table 8. Category 7 JSON parser conditions
rc reason message Description
n m Varies. The rc and reason are set from the low level JSON Parser return code and reason code.
End of change
Start of change

Category 8 - z/OS XL C/C++ Conditions

Category 8 z/OS XL C/C++ Conditions shows the possible conditions for this error category.

Table 9. Category 8 z/OS XL C/C++ Conditions
rc reason message Description
n m Varies. The rc and reason are set from the low level z/OS XL C/C++ return code and reason code.
End of change

Category 9 — Unexpected error

Table 10 shows the possible conditions for this error category.

Table 10. Category 9 errors for z/OS data set and file REST interface operations
rc reason message Description
16 1 Server error occurred. For details about the exception, see the stack property of the JSON error report document, which is described in Error report document.