module Rack::Utils

def status_code(status)

Experimental RBS support (using type sampling data from the type_fusion project).

def status_code: (Integer status) -> Integer

This signature was generated using 1 sample from 1 application.

def status_code(status)
  if status.is_a?(Symbol)
    SYMBOL_TO_STATUS_CODE.fetch(status) { raise ArgumentError, "Unrecognized status code #{status.inspect}" }
  else
    status.to_i
  end
end