NetStacksNetStacks

Error Codes

API error codes and their meanings.

HTTP Status Codes

CodeMeaning
200Success
201Created
204No Content (successful delete)
400Bad Request - Invalid input
401Unauthorized - Invalid or missing token
403Forbidden - Insufficient permissions
404Not Found - Resource doesn't exist
409Conflict - Resource already exists
422Unprocessable Entity - Validation failed
429Too Many Requests - Rate limited
500Internal Server Error

Error Response Format

All errors return a consistent JSON format:

{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid device type",
    "details": {
      "field": "device_type",
      "value": "invalid_type"
    }
  }
}