Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This way you can provide a schema for the error such that a client can parse the response. It makes sense for an API schema to include it.


This. And it may not be immediately obvious if you’re not familiar with RFC 7807, but in the example the responses’ content types specify their schema.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: