-module(dove@response). -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function]). -export_type([response/1, response_body/1, http_status/0]). -type response(HIT) :: {response, http_status(), list({binary(), binary()}), response_body(HIT)}. -type response_body(HIU) :: {raw, binary()} | {decoded, HIU}. -type http_status() :: continue | switching_protocols | processing | early_hints | ok | created | accepted | non_authoritative_information | no_content | reset_content | partial_content | multi_status | multiple_choices | moved_permanently | found | see_other | not_modified | use_proxy | temporary_redirect | bad_request | unauthorized | payment_required | forbidden | not_found | method_not_allowed | not_acceptable | proxy_authentication_required | request_timeout | conflict | gone | length_required | precondition_failed | payload_too_large | uri_too_long | unsupported_media_type | range_not_satisfiable | expectation_failed | im_a_teapot | unprocessable_entity | locked | failed_dependency | too_early | upgrade_required | precondition_required | too_many_requests | request_header_fields_too_large | unavailable_for_legal_reasons | internal_server_error | not_implemented | bad_gateway | service_unavailable | gateway_timeout | http_version_not_supported | variant_also_negotiates | insufficient_storage | loop_detected | not_extended | network_authentication_required.