Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add status code to exceptions #2

Open
mfrister opened this issue Dec 10, 2015 · 0 comments
Open

Add status code to exceptions #2

mfrister opened this issue Dec 10, 2015 · 0 comments

Comments

@mfrister
Copy link
Contributor

Currently, Grac Exceptions don't contain the HTTP response code, so just forwarding the error in a response is not possible, but rather requires manually mapping exceptions back to status codes.

Also, for generic ServiceExceptions, there's no way to access the response code.

Grac ClientExceptions should contain the HTTP response code, so we can access it.

Make sure to not break the existing API - when adding a parameter to the ClientException initializer, make it optional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant