2 ms·
On practical thing I took away from this: If you omit the "type", the message has no additional semantics beyond that of the HTTP status code. So this provides
by ximm 4y ago
On practical thing I took away from this:
If you omit the "type", the message has no additional semantics beyond that of
the HTTP status code. So this provides a standard for error responses with JSON bodies:
{
"title": "Not Found",
"status": 404,
"detail": "The file you are looking for doesn't exist."
}