|
|
|
|
|
by niftich
3628 days ago
|
|
Send the most appropriate HTTP status code, along with an error resource the client purports to understand (by accept header content negotiation). If the client isn't declaring to accept a mediatype you produce, you send your fallback error format, which could be anything you choose: text/plain, or some custom format you design, or some generic hypermedia type that defines an error field. |
|