DashForDevsDocs
DocsNewsAPI v1
dashfordevs.comSign in

© 2026 DashForDevs

DocsNewsdashfordevs.comLegalStatus
DocsREST APIError Responses
Introduction
Getting Started
Authentication
Products
Categories
Cart
Checkout
Blog
Reviews
Webhooks
Customers
Orders
Inventory
Shipping
Discounts
Affiliates
Email
Media & Files
Analytics & Tracking
Locations
Tax
Global Data
SEO
Error Handling
Geography
Finance
Automations
Page Types
Surveys
Billing & Subscriptions
Storefront Payments
SDK Reference
REST API
Base URL & HeadersPaginationFiltering & SortingError ResponsesRate Limiting
Storefront Architecture
Notifications
Security
Team & Permissions
Migrations & Import
Calendar & Appointments
Contact Forms
AI Bots
Dashboard API
Deployment
Changelog
Troubleshooting
Recipes
CLI & Deployment
Image Pipeline
White-label Platforms
Records Engine
Platform Modules
Platform Security
Site Keys & Client Sites
Use Cases
Operations

Error Responses

Standard error response format with status codes.

Updated March 29, 2026

On this page
  • Error Format
  • HTTP Status Codes
  • Error Codes Reference
  • Handling Errors
  • Next Steps

Error Format

All errors return a consistent JSON structure:

json
{
  "error": "not_found",
  "message": "Product not found",
  "details": "No product with slug 'nonexistent'"
}

HTTP Status Codes

StatusMeaning
200Success
201Created (new resource)
400Bad Request (invalid input)
401Unauthorized (missing or invalid auth)
403Forbidden (insufficient permissions)
404Not Found
429Rate Limited
500Internal Server Error
503Maintenance Mode

Error Codes Reference

See Error Codes for the full list of error codes and their meanings.

Handling Errors

typescript
const response = await fetch(url, { headers: { "X-API-Key": key } })

if (!response.ok) {
  const error = await response.json()
  console.error(error.error, error.message)
  // Handle based on status code
}

Next Steps

  • Rate Limiting — Request limits
  • Error Codes — Full error reference
PreviousFiltering & SortingNextRate Limiting

On this page

  • Error Format
  • HTTP Status Codes
  • Error Codes Reference
  • Handling Errors
  • Next Steps