DEV Community

Augusts Bautra
Augusts Bautra

Posted on

Simple HTTP status code-symbol map in Rails

Rack::Utils::SYMBOL_TO_STATUS_CODE.key(404)
=> :not_found

head :not_found
Enter fullscreen mode Exit fullscreen mode

Top comments (0)