rspec_api_documentation
rspec_api_documentation copied to clipboard
Suggestion: use HTTP status code lookup instead of magic constants
In the documentation, use
Rack::Utils::status_code :unauthorized
and such instead of magic constants like 401, etc.
Full list available here: https://github.com/rack/rack/blob/master/lib/rack/utils.rb#L492