class OAS::Error::HTTP

Constants

BadGateway
BadRequest
Forbidden
GatewayTimeout
InternalServerError
NotFound
ServiceUnavailable
TooManyRequests
Unauthorized
UnprocessableEntity

Attributes

body[R]
code[R]
headers[R]

Public Class Methods

new(code, headers, body) click to toggle source
# File lib/oas/error.rb, line 7
def initialize(code, headers, body)
  @code    = code
  @headers = headers
  @body    = body
end