Exception: ThreeScale::Backend::ContentTypeInvalid

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

Overview

Bad Requests

Instance Method Summary collapse

Methods inherited from BadRequest

#http_code

Methods inherited from Error

#code, code, #http_code, #to_xml, underscore

Constructor Details

#initialize(content_type) ⇒ ContentTypeInvalid

Returns a new instance of ContentTypeInvalid.



266
267
268
# File 'lib/3scale/backend/errors.rb', line 266

def initialize(content_type)
  super %(invalid Content-Type: #{content_type})
end