Error Response
All error responses in the API follow the RFC 7807 standard using the application/problem+json
content type.
Sample Error Response
{
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title": "One or more validation errors occurred.",
"status": 400,
"detail": "See the errors property for details.",
"instance": "/api/Auctions",
"errors": {
"startingPrice": ["Starting price must be greater than 0."],
"title": ["Title is required."]
}
}
Property Breakdown
Property | Type | Description |
---|---|---|
type | string | A URI reference that identifies the problem type. You can look it up for more info. |
title | string | A short, human-readable summary of the problem. |
status | number | The HTTP status code generated by the server (e.g., 400 , 404 , 500 ). |
detail | string | A human-readable explanation specific to this occurrence of the problem. |
instance | string | A URI reference that identifies the specific request instance (usually the request path). |
errors | object | (Optional) A dictionary of validation errors. Present only for 400 Bad Request responses from validation. Keys are property names; values are arrays of error messages. |