Module: HttpResource::Expected

Included in:
NotFoundError
Defined in:
lib/http_resource/errors.rb

Overview

Marker for the ONE failure the non-bang resource methods (find, destroy) treat as an EXPECTED outcome and swallow to nil: a 404 not-found. Everything else — INCLUDING a 422 validation rejection on a write (which must surface, not silently drop the write) — is UNEXPECTED and raises even from the non-bang form. The bang form (find!, create!) raises on any failure.