406 Not Acceptable

Look up a status, pick the right one for an API, or hit a live endpoint that actually returns it. Add ?code=418 to this URL and the response is that status — useful for curl, interceptors, and “what does my client do on 503?” Nothing here phones home except the Try it fetch to this same page.

Which class?

406

Not Acceptable

Client error · RFC 9110

The server cannot produce a representation matching the Accept headers.

When to use

Client asked for application/xml and you only have JSON.

Don’t

Do not use 406 for validation errors. That is 400 or 422.

Live URL

curl -i https://corecoding.com/utilities/http-status.php?code=406


    

Code use cases