4 ms·
It’s explicit in the responses you should expect for a given request, versus what you should expect. For example if the specification defined that a 404 is a va
by junto 3y ago
It’s explicit in the responses you should expect for a given request, versus what you should expect. For example if the specification defined that a 404 is a valid use case then null or empty list is not considered an exception, but if it isn’t defined in the spec and you receive a 404 unexpectedly, then you can treat it as an exception rather than a valid response.
- cies 3y agoExactly. Also you want to be able to give, for instance, 400s a body that's JSON schema'd