module OasRails::Utils

def get_definition(status_code)

Returns:
  • (String) - The text description of the status code.

Parameters:
  • status_code (Integer) -- The status code.
def get_definition(status_code)
  HTTP_STATUS_DEFINITIONS[status_code] || "Definition not found for status code #{status_code}"
end