DevHub API Documentation
  • Introduction
  • Authentication
  • Errors
  • Getting started guides
    • Business-focused Sites
    • Location-focused Sites
    • Location pages and store locator with custom theme
    • Site publishing with site builder access
  • Code examples
    • Python
    • PHP
    • Perl
  • Best practices
    • Our unique IDs, versus yours
    • State and country codes
  • Core Resources
    • Sites
    • Businesses
    • Locations
    • Domains
    • Proxies
  • Content Resources
    • Pages
    • Content
    • Images
    • Files
    • Modules
    • Plugins
    • Themes
  • Logging and analytics
    • Analytics
    • Contact Logs
  • Single Sign On (SSO)
    • Introduction
    • Assigning a site's user
  • Live Preview API
    • What is the Live Preview API?
  • Advanced
    • Domain aliases
    • Language codes
    • Projects
    • Site Check
    • Traces
    • Webmail
  • Local Storage API
    • What is the Local Storage API?
  • Headless CMS
    • Locations search
  • Visitor Localization SDK
    • Visitor Localization SDK
Powered by GitBook
On this page
  • HTTP Status Code Summary
  • Error/validation responses

Was this helpful?

Errors

Our API uses conventional HTTP response codes to indicate success or failure of an API request. In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that resulted from the provided information (e.g. a required parameter was missing, validation errors, etc.), and codes in the 5xx range indicate an actual error with our servers.

HTTP Status Code Summary

Status code

Description

200 OK

Everything worked as expected

400 Bad Request

Often missing a required parameter or validation of a supplied parameter has failed

401 Unauthorized

The oauth parameters provided to not have permission for this resource

402 Request Failed

Parameters were valid but request failed

404 Not Found

The requested item does not exist

500, 502, 503, 504 Server errors

Something went wrong on our end

Error/validation responses

Returned as status 400 Bad Request on POST or PUT requests

{"__all__": ["The provided error is related to the object as a whole"]}
{"some_field": ["This field is required"]}
{"nested_field": {"nested_field-1": {"some_field": ["This field is required"]}}}
PreviousAuthenticationNextGetting started guides

Last updated 6 years ago

Was this helpful?