files/en-us/web/http/reference/headers/accept-patch/index.md
The HTTP Accept-Patch {{Glossary("response header")}} advertises which media types the server is able to understand in a {{HTTPMethod("PATCH")}} request.
For example, a server receiving a PATCH request with an unsupported media type could reply with {{HTTPStatus("415", "415 Unsupported Media Type")}} and an Accept-Patch header referencing one or more supported media types.
The header should appear in {{HTTPMethod("OPTIONS")}} requests to a resource that supports the PATCH method.
An Accept-Patch header in a response to any request method implicitly means that a PATCH is allowed on the target resource in the request.
<table class="properties"> <tbody> <tr> <th scope="row">Header type</th> <td>{{Glossary("Response header")}}</td> </tr> </tbody> </table>[!NOTE] IANA maintains a list of official content encodings. The
bzipandbzip2encodings are non-standard but may be used in some cases, particularly for legacy support.
Accept-Patch: <media-type>/<subtype>
Accept-Patch: <media-type>/*
Accept-Patch: */*
// Comma-separated list of media types
Accept-Patch: <media-type>/<subtype>, <media-type>/<subtype>
<media-type>/<subtype>
text/html.<media-type>/*
image/* corresponds to image/png, image/svg, image/gif, and other image types.*/*
Accept-Patch: application/json
Accept-Patch: application/json, text/plain
Accept-Patch: text/plain;charset=utf-8
{{Specifications}}
Browser compatibility is not relevant for this header. The server sends the header, and the specification doesn't define client behavior.