SERVICE-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.
type
: Provides the category of the error such as CLIENT_ERROR
if it’s something wrong with your request.errorCode
: Provides a specific, standardized code such as SERVICE-4006
that 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.