Exception: Pendragon::BadRequest

Inherits:
ResponseError show all
Defined in:
lib/pendragon/error.rb

Overview

A class for BadRequest response

Instance Method Summary collapse

Methods inherited from ResponseError

#call, #headers, #initialize

Constructor Details

This class inherits a constructor from Pendragon::ResponseError

Instance Method Details

#bodyObject



35
36
37
# File 'lib/pendragon/error.rb', line 35

def body
  @body ||= "Bad Request"
end

#statusObject



31
32
33
# File 'lib/pendragon/error.rb', line 31

def status
  @status ||= 400
end