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)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More