CrowdHailer / raxx

Interface for HTTP webservers, frameworks and clients
https://hexdocs.pm/raxx
Apache License 2.0
401 stars 29 forks source link

Standardize default responses for errors #131

Closed CrowdHailer closed 5 years ago

CrowdHailer commented 5 years ago

There are several places where Raxx, or a server, will send an error before getting to the application code. Such as an overly large request or a parsing error. It would be good to have a standard error format that would allow servers to just call Raxx.error_response(reason) for the content that it should return.

CrowdHailer commented 5 years ago

Part of master,

NOTE undocumented function, subject to change