class PowerTrack::NotAcceptableError

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.”

Public Class Methods

new(message, body) click to toggle source
Calls superclass method PowerTrack::BasePowerTrackError::new
# File lib/powertrack/errors.rb, line 93
def initialize(message, body)
  super(406, message, body)
end