WithDetails attaches structured details and returns the envelope for fluent construction.
(details any)
| 70 | // WithDetails attaches structured details and returns the envelope for |
| 71 | // fluent construction. |
| 72 | func (e *ErrorEnvelope) WithDetails(details any) *ErrorEnvelope { |
| 73 | e.Err.Details = details |
| 74 | return e |
| 75 | } |
| 76 | |
| 77 | // defaultCodeForStatus maps an HTTP status to a stable default `code` for |
| 78 | // the cases where a handler (or Huma's built-in validation) produced only a |
no outgoing calls