Added failure report

Exceptions are now mapped to HTTP status codes