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

Present error messages #682

Closed
dspaeth-faber opened this issue Jul 17, 2014 · 3 comments
Closed

Present error messages #682

dspaeth-faber opened this issue Jul 17, 2014 · 3 comments

Comments

@dspaeth-faber
Copy link
Contributor

Swagger-UI is able to document errors with responseModels. grape-swagger has implemented this feature too.

Now it would be nice, when I could present my errors with an entity directly, for instace like this:

error!({ code: 'deleted', 
         with: Iron::Entities::Error, 
        message: "Account has ..." 
}, 410)
@dblock
Copy link
Member

dblock commented Jul 17, 2014

👍

@dspaeth-faber
Copy link
Contributor Author

This depends on #85
Also it would be nice when the error formatter can access the status code directly and not only with

env['api.endpoint'].status

@dblock
Copy link
Member

dblock commented Nov 28, 2014

This was #705, closing.

@dblock dblock closed this as completed Nov 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants