fabric uses a standardized error-handling framework. This framework is designed to make understanding and troubleshooting errors much simpler and more consistent across all our systems, allowing you to quickly pinpoint what went wrong, where it happened, and how to fix it.Documentation Index
Fetch the complete documentation index at: https://developer.fabric.inc/llms.txt
Use this file to discover all available pages before exploring further.
Currently, the standardized error-handling framework is only implemented for Inventory and Orders API endpoints.
How it works
This standardized error-handling framework uses two main components: Standardized Error Codes: fabric maintains a shared set of codes for common scenarios that can occur across services. This means if you seeSERVICE-4002 for an Invalid value error, you know what that error means, regardless of which service returned it.
Structured JSON Error Responses: All API errors come in a consistent JSON format. This format is crucial because it consolidates all relevant details in one place.
Error format example
Every time an API error occurs, you’ll receive a JSON object that looks like this:type: Provides the category of the error such asCLIENT_ERRORif it’s something wrong with your request.errorCode: Provides a specific, standardized code such asSERVICE-4006that tells you exactly what kind of error occurred.message: A human-readable explanation of the error.context: An object used for debugging. The context object tells you which service encountered the error and the specific API endpoint that triggered the error. This helps you trace the problem back to its source.
