lib/appnexusapi/faraday/raise_http_error.rb
# Inexplicably, sandbox uses the correct code of 429, while production uses 405? so
# we just rely on the error message
Inexplicably, sandbox uses the correct code of 429, while production uses 405. so
we just rely on the error message
Inexplicably sandbox uses the correct code of 429 while production uses 405 . so we just rely on the error message
def error_message(response)
          msg = "#{response[:method].to_s.upcase} #{response[:url].to_s}: #{response[:status]}"
          if (errors = response[:body]) && response[:body]['errors']
            msg << "\n"
            msg << errors.join("\n")
          end
          msg
        end
def error_message ( response ) msg = "#{response[:method].to_s.upcase} #{response[:url].to_s}: #{response[:status]}" if ( errors = response [ :body ] ) && response [ :body ] [ 'errors' ] msg << "\n" msg << errors . join ( "\n" ) end msg end
Inexplicably, sandbox uses the correct code of 429, while production uses 405?
Inexplicably sandbox uses the correct code of 429 while production uses 405?
response