Exception: ScrapeUnblocker::ValidationError

Inherits:
APIError
  • Object
show all
Defined in:
lib/scrapeunblocker/errors.rb

Overview

A request parameter is missing or has the wrong type (HTTP 422).

Unlike the other errors the body is JSON, with a "detail" array pinpointing each problem field. Read it from #body.

Instance Attribute Summary

Attributes inherited from APIError

#body, #status_code

Method Summary

Methods inherited from APIError

#initialize

Constructor Details

This class inherits a constructor from ScrapeUnblocker::APIError