Error Responses (Lab API)

8. Error responses

General error format

{
  "error": "Error description"
}

Examples

  • Missing or invalid parameter:
    • {"error": "Action parameter is required"}
    • {"error": "Order ID is required"}
  • Not found:
    • {"error": "Order not found"}
    • {"error": "Incorrect order ID"}
  • Permission or capability issues:
    • {"error": "This service does not support refills"}
    • {"error": "This order cannot be cancelled"}