Exception: PowerTrack::NotAcceptableError

Inherits:
PredefinedStatusPowerTrackError show all
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

#body, #status

Instance Method Summary collapse

Methods inherited from WithStatusPowerTrackError

build

Constructor Details

#initialize(message, body) ⇒ NotAcceptableError

Returns a new instance of NotAcceptableError.



93
94
95
# File 'lib/powertrack/errors.rb', line 93

def initialize(message, body)
  super(406, message, body)
end