Exceptions can be send back as HTTP error codes and custom headers