Exception: HttpResource::ValidationError

Inherits:
ClientError show all
Defined in:
lib/http_resource/errors.rb

Overview

422 — the request was rejected as invalid (the body holds the details). NOT Expected: a non-bang write raises this instead of silently dropping the write, so a sync job surfaces and retries the failure rather than losing data.

Instance Attribute Summary

Attributes inherited from ApiError

#body, #status

Method Summary

Methods inherited from ApiError

#client_error?, for_status, #initialize, #not_found?, #server_error?

Constructor Details

This class inherits a constructor from HttpResource::ApiError