Exception: ThreeScale::Backend::BadRequest

Inherits:
Error
  • Object
show all
Defined in:
lib/3scale/backend/errors.rb

Instance Method Summary collapse

Methods inherited from Error

code, #code, #to_xml, underscore

Constructor Details

#initialize(msg = 'request contains syntax errors, should not be repeated without modification'.freeze) ⇒ BadRequest

Returns a new instance of BadRequest.



33
34
35
# File 'lib/3scale/backend/errors.rb', line 33

def initialize(msg = 'request contains syntax errors, should not be repeated without modification'.freeze)
  super msg
end

Instance Method Details

#http_codeObject



37
38
39
# File 'lib/3scale/backend/errors.rb', line 37

def http_code
  400
end