class LittleGhost::Providers::HTTPError
Reports an HTTP or network failure from a provider transport.
Attributes
HTTP status and bounded response body, when the server supplied them.
HTTP status and bounded response body, when the server supplied them.
Public Class Methods
# File lib/little_ghost/providers/http_transport.rb, line 15 def initialize(message, status: nil, body: nil) @status = status @body = body super(message) end
Creates an error with optional response details.
Calls superclass method
Public Instance Methods
Source
# File lib/little_ghost/providers/http_transport.rb, line 22 def retryable? status.nil? || status == 408 || status == 409 || status == 429 || status >= 500 end
Indicates whether a provider client may retry the request.