Method: Soaspec::SoapHandler#status_code_for

Defined in:
lib/soaspec/exchange_handlers/soap_handler.rb

#status_code_for(response) ⇒ Integer

Response status code for response. ‘200’ indicates a success

Parameters:

  • response (Savon::Response)

Returns:

  • (Integer)

    Status code



130
131
132
# File 'lib/soaspec/exchange_handlers/soap_handler.rb', line 130

def status_code_for(response)
  response.http.code
end