Pega API HTTP status codes and errors
The Pega API returns several HTTP status codes. When an error occurs, a Pega API error ID and corresponding message may also be returned in the response body.
The table below provides a complete list of HTTP status codes and Pega API errors.
For more information on the Pega API, see the Pega API documentation provided in the Dev Studio Pega API resources page.
For more information about HTTP status codes, refer to the IANA Hypertext Transfer Protocol (HTTP) Status Code Registry.
Pega API and access groups
The Pega APIs can only access rules in applications that are in the operator's default access group. To access rules outside of the default access group, for example, to access a data page in another application, either change the operator's default access group or create a new operator with a default access group that includes the application that has the data page that you want to access.
Status and error code table
HTTP status code | HTTP status reason | Pega API error ID | Pega API error message | APIs that return HTTP status code |
---|---|---|---|---|
200 | OK | None | All APIs except: Create a new case
Update a case
|
|
201 | Created | None | Create a new case
|
|
204 | No content | None | Update a case
|
|
400 | Bad request |
Pega_API_001
|
Invalid request data | Perform assignment action
Create a new case
Update a case
|
Pega_API_002
|
The parameter actionID is required for this request | Perform assignment action
|
||
Pega_API_003
|
The parameter ID is required for this request | Perform assignment action
Update a case
|
||
Pega_API_004
|
The parameter caseTypeID is required for this request | Create a new case
|
||
Pega_API_007
|
Action not found for the given parameter actionID | Perform assignment action
Update a case
|
||
Pega_API_008
|
Case Type not found for the given parameter caseTypeID | Create a new case
|
||
Pega_API_009
|
Process not found for the given parameter processID | Create a new case
|
||
Pega_API_010
|
Parent case not found for the given parameter parentCaseID | Create a new case
|
||
401 | Unauthorized | None | All APIs | |
403 | Forbidden |
Pega_API_012
|
Unauthorized access for the given parameter ID | Perform assignment action
Get case details
Update a case
|
Pega_API_016
|
Unauthorized to create a new case | Create a new case
|
||
Pega_API_019
|
Insufficient privilege | All APIs | ||
Pega_API_020
|
Missing If-Match request header | Update a case
|
||
Pega_API_022
|
Use of TLS/SSL is required | All APIs | ||
404 | Not found |
Pega_API_006
|
Assignment not found for the given parameter ID | Get assignment details
Perform assignment action
|
Pega_API_011
|
Case not found for the given parameter ID | Get case details
Update a case
|
||
Pega_API_017
|
Data page not found for the given parameter ID | Get data page contents
Get data page metadata
|
||
Pega_API_018
|
Missing required data page parameters | Get data page contents
|
||
405 | Method not allowed | None | All APIs | |
412 | Precondition failed |
Pega_API_021
|
Unauthorized access: If-Match does match ETag | Update a case
|
500 | Internal server error | None | All APIs |