|docs
Start Trial

Developer

Errors

Errors

If an API request is successful, PagerDuty will respond to it with HTTP status code 2XX and the resources that match the query.

If the API request is unsuccessful, PagerDuty will respond with a corresponding HTTP error status code and the response body will contain PagerDuty error details.

The response body (with error details) will have the following properties:

Error Response

{
    "error": {
        "message": "Error Message String",
        "code": 2001,
        "errors": [
            "human-readable error details",
            "more details"
        ]
    }
}

HTTP Responses

The HTTP response can be used to determine if the request was successful, and if not, whether the request should be retried.

CodeHTTP DefinitionDescription
200OKThe request was successful
201CreatedThe request was successful and a new resource was created.
204No ContentThe request was successful. No content is returned.
400Bad RequestCaller provided invalid arguments. Please review the response for error details. Retrying with the same arguments will not work.
401UnauthorizedCaller did not supply credentials or did not provide the correct credentials. See Authentication.
402Payment RequiredThe PagerDuty account does not have access to one or more abilities needed to complete this request. Use the Account Abilities API to determine which abilities the account supports.
403ForbiddenCaller is not authorized to view the requested resource.
404Not FoundThe requested resource was not found.
408Request TimeoutThe request took too long to process. Please try again.
429Too Many RequestsThe caller is making requests too frequently. Wait a moment before making further requests and make them at a reduced rate. See the REST API Rate Limits and Events API Rate Limits pages for more detail.
500Internal Server ErrorInternal error occurred while processing request, likely due to transient issues. Please try again. Tip: We recommend adding retry logic to your client to automatically try your request again later.

PagerDuty Error Codes

In the case of an error, the PagerDuty error code can give further details on the nature of the error.

This list of error codes is not exhaustive, but is representative of the kinds of errors you will see in API responses.

CodeMessage
1001Incident Already Resolved
1002Incident Already Acknowledged
1003Invalid Status Provided
1004Invalid ID Provided
1005Data Updated Since Last Request
1006Cannot Escalate
1007Assigned To User Not Found
1008Requester User Not Found
1009Error Parsing before_time Parameter
1010Before Time or Before Incident Number Not Found
1011Cannot process reassign action
1012Incident is not Acknowledged
1013Snooze Duration is Invalid
1014Escalation Policy Not Found
1015Escalation Policy Has No User On Call
1018Requester not authorized to perform action
1019Incident Already Merged
1020Invalid Priority
2000An internal error has occurred. PagerDuty team has been notified.
2001
  • Cannot Delete Only Rule For Escalation Policy
  • Cannot create more than 50 users at one time
  • Escalation Policy has already been taken
  • Incident could not be created
  • Invalid Input Provided
  • Users must be an array
2002Arguments Caused Error
2003Missing Arguments
2004Invalid time values in 'since' and/or 'until' parameters
2005Invalid Query Date Range
2006Authentication failed
2007Account Not Found
2008Account Locked
2009Only HTTPS Allowed For This Call
2010Access Denied
2011You must specify a requester_id to perform this action
2012Your account is expired and cannot use the API
2013User not found
2014Missing Account Ability
2015Invalid operation
2016The request took too long to process
2017Too Many Contact Method Actions
2018Access Denied: You may have lost access to this incident if it has been resolved
2019Product Limit Reached
2020Rate Limit Exceeded
2100Not Found
3001Invalid Schedule
3004
  • Schedule Not Found
  • Unknown Schedule
4004
  • Invalid Override
  • Override Not Found
5001
  • Affiliate Partner Not Found
  • Color Not Found
  • Escalation Policy Not Found
  • Escalation Rule Not Found
  • Incident Not Found
  • Log Entry Not Found
  • Maintenance Window Not Found
  • User Next On-call Not Found
  • Vendor Not Found
  • Webhook Not Found
5002
  • Service Not Found
  • Simple Log Entry Limit Reached
5003Cannot cancel a maintenance window from the past
6001Team Not Found
6002Team has Incidents but Reassignment Team is not valid
6003Team has Incidents but Reassignment Team is not found
6004Team could not be deleted because there are too many incidents, please contact support.
6006Team has existing associations
6007The request failed to complete
7001saml is not enabled
7002SAMLResponse is not provided
7003failed to parse SAMLResponse
7004SAMLResponse is invalid
7005unable to find user by name_id
7006invalid name_id found in SAMLResponse
7007unexpected validation error
8001
  • google auth is not enabled
  • pre_auth.authorizable? returned false
8002redirect_uri is invalid
8004unable to find account
8005unable to find user by name_id
8006user has denied google auth
8007unable to log in using google auth
8008user has tried to access an invalid host domain