Exception: Rackful::HTTP415UnsupportedMediaType

Inherits:
HTTPStatus
  • Object
show all
Defined in:
gems/rackful-0.1.1/lib/rackful_http_status.rb,
gems/rackful-0.1.1.orig/lib/rackful_http_status.rb

Overview

Since:

Instance Attribute Summary

Attributes inherited from HTTPStatus

#headers, #status, #to_rackful

Attributes included from Resource

#get_etag, #get_last_modified, #path

Instance Method Summary (collapse)

Methods included from Resource

#default_headers, #destroy, #do_METHOD, #empty?, #http_DELETE, #http_GET, #http_HEAD, #http_OPTIONS, #http_PUT, #http_method, #http_methods, included, #requested?, #serializer, #title, #to_rackful, #to_struct

Constructor Details

- (HTTP415UnsupportedMediaType) initialize(media_types)

A new instance of HTTP415UnsupportedMediaType

Since:

  • 0.1.0



271
272
273
274
# File 'gems/rackful-0.1.1/lib/rackful_http_status.rb', line 271

def initialize media_types
  super 405, '',
        :Supported media-type(s):' => media_types
end