500 Internal Server Error

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?

500

Internal Server Error

Server error · RFC 9110

The server hit an unexpected condition. This is your bug, not the client’s.

When to use

Unhandled exceptions. Log it, show a generic body, do not leak stack traces in production.

Don’t

Do not use 500 for bad input (400/422) or auth (401/403). If a dependency failed, 502 or 503 is more honest.

Live URL

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


    

Code use cases