inhabitedtype / ocaml-webmachine

A REST toolkit for OCaml
Other
221 stars 31 forks source link

Provide a body when reporting errors #61

Open talex5 opened 8 years ago

talex5 commented 8 years ago

When webmachine rejects a request, it usually returns a status code and no body. Firefox and Safari at least just display a blank page in this case, which is confusing for users. It would be nice to return some kind of message in this case. Even just "Error: nnn" would be better than nothing.