OptionaldefaultCreates errors for status codes not in statusMap.
OptionalstatusMaps specific status codes to custom error mappers.
When a response matches a status code in this map, the corresponding mapper function is called to create the error. This takes priority over defaultMapper.
OptionalthrowDetermines whether to throw for a given status code.
Configuration options for the withResponseError middleware.
All options are optional, allowing zero-config usage that throws ResponseError for any response with status code >= 400.