class Shaf::Errors::NotAcceptableError
Public Class Methods
new(msg = nil)
click to toggle source
Calls superclass method
Shaf::Errors::ServerError::new
# File lib/shaf/errors.rb, line 72 def initialize(msg = nil) msg ||= 'Resource found, but a suitable representation could not be generated' super(msg, code: 'NOT_ACCEPTABLE', title: 'Content negotiation failed') end
Public Instance Methods
http_status()
click to toggle source
# File lib/shaf/errors.rb, line 68 def http_status 406 end