rspec_api_documentation icon indicating copy to clipboard operation
rspec_api_documentation copied to clipboard

Suggestion: use HTTP status code lookup instead of magic constants

Open qortex opened this issue 7 years ago • 0 comments

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

qortex avatar Oct 27 '18 10:10 qortex