> ## Documentation Index
> Fetch the complete documentation index at: https://docs.safesquid.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Response Types

<Note>
  CLI man page: `safesquid-respProfiles(5)`
</Note>

The **Response Types** section (`safesquid-respProfiles(5)`) labels HTTP responses for [Access Profiles](/admin_guide/policies_and_profiles/access_profiles) and content filters. It does not block by itself.

## Core mechanics

### Two-pass evaluation

1. On response headers — response profiling runs with no body buffer.
2. On buffered body — hook runs again with detected MIME and size.

Every matching enabled row applies; no first-match stop.

<Frame caption="Response Types — row gate order">
  <img src="https://mintcdn.com/safe-squid-labs-12a0916f/VRx-_vpMam8ezhZz/images/admin_guide/response_types_flowchart.svg?fit=max&auto=format&n=VRx-_vpMam8ezhZz&q=85&s=361bd653e9f6b469dba340ba8f6585ab" alt="Response Types gate flow" width="480" height="340" data-path="images/admin_guide/response_types_flowchart.svg" />
</Frame>

### Content size

Non-zero min/max tested against body buffer size when present, and against Content-Length when CL flag set. Zero disables each test.

### MIME and extension

MIME regex tries response Content-Type header, then detected body type. Extension regex tries URL (query stripped), then attachment filename.

## Examples

<Tip>
  ### Text for keyword filter

  **Config:** MIME `(^text/|script$)`, add `text_res`.

  **Result:** HTML/JS/text responses tagged.
</Tip>

<Tip>
  ### Images

  **Config:** MIME `^image/`, add `image_res`.

  **Result:** image Content-Types tagged for image filter policies.
</Tip>

<Tip>
  ### Large images

  **Config:** MIME `^image/`, min size 1048576, add `large-image`.

  **Result:** skipped below 1 MiB; tagged at or above threshold.
</Tip>

## How to verify

1. **Trace Entry**; fetch test URL; check native logs.
2. Detailed logs — `response_profiles`, `download_content_types`.


## Related topics

- [Response Profiles](/use_cases/profiling_engine/response_profiles.md)
- [Debug response headers](/admin_guide/start_here/debug_response_headers.md)
- [Content Signatures](/admin_guide/policies_and_profiles/content_signatures.md)
- [Access Profiles](/admin_guide/policies_and_profiles/access_profiles.md)
- [Architecture and request pipeline](/admin_guide/start_here/architecture.md)
