Exception: PowerTrack::NotAcceptableError
- Inherits:
-
PredefinedStatusPowerTrackError
- Object
- StandardError
- BasePowerTrackError
- WithStatusPowerTrackError
- PredefinedStatusPowerTrackError
- PowerTrack::NotAcceptableError
- Defined in:
- lib/powertrack/errors.rb
Overview
Generally, this occurs where your client fails to properly include the headers to accept gzip encoding from the stream, but can occur in other circumstances as well.
Will contain a JSON message similar to “This connection requires compression. To enable compression, send an ‘Accept-Encoding: gzip’ header in your request and be ready to uncompress the stream as it is read on the client end.”
Instance Attribute Summary
Attributes inherited from BasePowerTrackError
Instance Method Summary collapse
-
#initialize(message, body) ⇒ NotAcceptableError
constructor
A new instance of NotAcceptableError.
Methods inherited from WithStatusPowerTrackError
Constructor Details
#initialize(message, body) ⇒ NotAcceptableError
Returns a new instance of NotAcceptableError.
85 86 87 |
# File 'lib/powertrack/errors.rb', line 85 def initialize(, body) super(406, , body) end |