Class HttpIntakeException

All Implemented Interfaces:
Serializable

public class HttpIntakeException extends IntakeException
A failure attributable to the HTTP request itself — a malformed shape, a missing header, an undeterminable document identity, or an oversized body.

Always a 4xx: the client can correct it and retry. Carries no upstream detail because none is involved — the request never got far enough to call a dependency. These are the validation rejections raised at the very top of the resource, before any work is attempted.

See Also:
  • Method Details

    • badRequest

      public static HttpIntakeException badRequest(String clientMessage)
      Generic malformed request with an explicit, safe explanation.
    • missingHeader

      public static HttpIntakeException missingHeader(String headerName)
      A required header was absent or blank.
    • undeterminableDocId

      public static HttpIntakeException undeterminableDocId()
      None of the identity-bearing headers were sufficient to derive a doc_id.
    • payloadTooLarge

      public static HttpIntakeException payloadTooLarge()
      The declared or streamed body exceeds the permitted size.
    • docIdTooLong

      public static HttpIntakeException docIdTooLong(int max)
      A derived or caller-supplied doc_id exceeds the storable maximum.
    • rejected

      public static HttpIntakeException rejected(IntakeErrorCode code, String clientMessage)
      A client rejection with an explicit code and curated message — used by policy/security checks (e.g. a blocked file type) that decide the code themselves rather than mapping an upstream failure.