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.

View all 30 validation error codes
CodeNameDescription
4000ValidationErrorGeneral validation error
4001ChoiceValidationErrorValue not in allowed choices
4002DateTooEarlyValidationErrorDate is before minimum allowed
4003DateTooLateValidationErrorDate is after maximum allowed
4004FileTooBigValidationErrorFile exceeds size limit
4005FileValidationErrorFile validation failed
4006FormatValidationErrorValue format is invalid
4007I18nValidationErrorInternationalization error
4008IsRequiredValidationErrorRequired field is missing
4009NotUniqueValidationErrorValue must be unique
4010TooFewCharsValidationErrorValue is too short
4011TooManyCharsValidationErrorValue is too long
4012UnavailableValidationErrorResource is unavailable
4013WrongFileTypeValidationErrorFile type not allowed
4014NoLicensesLeftValidationErrorNo licenses available
4015OwnerAlreadyExistsValidationErrorOwner already exists
4016UrlUnavailableValidationErrorURL is unavailable
4017BelowMinimumValidationErrorValue is below minimum
4018AboveMaximumValidationErrorValue is above maximum
4019OwnerDoesNotExistValidationErrorOwner doesn't exist
4020OwnerLockoutValidationErrorOwner is locked out
4021ProfileLimitReachedValidationErrorProfile limit reached
4022NoLowerCaseCharacterValidationErrorMissing lowercase character
4023NoUpperCaseCharacterValidationErrorMissing uppercase character
4024NoNumericCharacterValidationErrorMissing numeric character
4025NoSymbolicCharacterValidationErrorMissing symbol character
4026NotUniqueOverLatestChangesValidationErrorNot unique in recent changes
4027NotUniqueOverTimeValidationErrorNot unique over time period
4028FileTooSmallValidationErrorFile is below minimum size
4029RevokedCatalogValidationErrorCatalog has been revoked

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?