Skip to main content

Error Codes

||

When an API request fails, the Showpad API returns an error response with details to help you diagnose and resolve the issue.

What you'll learn:

  • Interpret HTTP status codes and Showpad error codes
  • Understand error categories (parameter, persistence, validation, body)
  • Troubleshoot common API errors
TL;DR
caution

The contents of this page are not applicable for Content Reporting.

Example Error Response

When an error occurs, the API returns a JSON response with error details:

{
"response": {
"code": 3004,
"name": "ResourceNotFoundError",
"message": "The requested resource could not be found"
}
}

HTTP Status Codes

The Showpad API uses standard HTTP status codes to indicate the success or failure of a request.

CodeStatusDescription
200OKRequest succeeded
201CreatedResource created successfully
204No ContentRequest succeeded with no response body
400Bad RequestInvalid request syntax or parameters
401UnauthorizedMissing or invalid authentication token
403ForbiddenValid token but insufficient permissions
404Not FoundResource doesn't exist
429Too Many RequestsRate limit exceeded
500Internal Server ErrorServer-side error

How to Read Showpad Error Codes

Showpad uses a numbering scheme to categorize errors:

Code RangeCategoryDescription
2xxxParameter ErrorsInvalid query parameters
3xxxPersistence ErrorsDatabase or resource issues
4xxxValidation ErrorsData doesn't meet requirements
5xxxBody ErrorsInvalid request body format

Parameter Errors

Parameter errors occur when an incorrect query parameter has been entered.

CodeNameDescription
2001InvalidParameterErrorParameter value is invalid
2002NegativeParameterErrorParameter cannot be negative
2003NotNumericParameterErrorParameter must be a number
2004NotIntegerParameterErrorParameter must be an integer

Persistence Errors

Persistence errors occur when an operation cannot be completed because it is not possible on a data level. For example, if an unknown ID is submitted, a ResourceNotFoundError will be returned.

CodeNameDescription
3000PersistenceErrorGeneral persistence error
3001RelationshipDoesNotExistErrorReferenced relationship doesn't exist
3002RelationshipExistsErrorRelationship already exists
3003RelationshipNotFoundRelationship not found
3004ResourceNotFoundErrorResource with given ID doesn't exist
3005SubcollectionNotFoundErrorSubcollection not found
3006UnableToDeleteErrorResource cannot be deleted
3007RelationshipUnsupportedErrorRelationship type not supported
3008ResourceNotModifiableErrorResource cannot be modified

Validation Errors

Validation errors occur when an operation cannot be completed because the entity or entities being submitted do not conform to Showpad requirements. For example, if a username is already registered, a NotUniqueValidationError will be returned.

Body Errors

Body errors are returned when the format entered in the request's body is invalid.

CodeNameDescription
5000InvalidBodyErrorRequest body is invalid
5001InvalidJsonBodyErrorJSON syntax is malformed
5002TooManyResourcesInBodyErrorToo many items in request body

Troubleshooting Common Errors

ErrorCommon CauseSolution
401 UnauthorizedExpired or missing tokenGenerate a new API token
403 ForbiddenInsufficient scopesCheck your OAuth client's scope settings
ResourceNotFoundErrorInvalid IDVerify the resource ID exists and you have access
IsRequiredValidationErrorMissing required fieldCheck the API reference for required parameters
InvalidJsonBodyErrorMalformed JSONValidate your JSON syntax before sending
tip

Use the Test API Requests feature to quickly debug errors with real data.

Need Help?

If you're encountering persistent errors that you can't resolve, contact Showpad Support for assistance.

Next Steps

Was this page helpful?