Resolve "Implement the error message according to the specification"
Closes #6 (closed)
Implements RFC7807 "Problem Details for HTTP APIs".
- Add custom exceptions inheriting from a base
storm::Exception
class. - All known exceptions are returned as detailed json in http responses with the
Content-Type: application/problem+json
header. - All other (unknown) exceptions are considered as
Internal Server Error (500)
.
Edited by Jacopo Gasparetto