class ActionDispatch::Response

def code

Returns a string to ensure compatibility with Net::HTTPResponse.
def code
  @status.to_s
end