HTTP status code · RFC 9110, section 15.5.6
405 Method Not Allowed
405 Method Not Allowed means the URL exists but doesn't accept this HTTP method, such as a POST to a read-only page.
What 405 means
The server must send an Allow header listing the methods it does accept, such as Allow: GET, HEAD.
Common causes
- Sending
POSTto an endpoint that only takesGET(or the reverse). - A server that doesn't implement
HEAD. - A form posting to the wrong URL.
How to fix 405
- Use a method from the
Allowheader. - Implement
HEADfor anyGETroute; most frameworks do it for you.
How Uptenna treats 405
With the default expected status (200-399), a 405 counts as a failed check. Two failures in a row open an incident, and the alert says Got HTTP 405 (expected 2xx or 3xx). The first successful check resolves it and sends a recovery. If you set a monitor to HEAD and the server doesn't support it, switch the monitor to GET.
See Monitors for expected status codes, keywords and timeouts.
Frequently asked questions
What does HTTP 405 mean?
405 Method Not Allowed means the URL exists but doesn't accept this HTTP method, such as a POST to a read-only page.
Is 405 an error?
Yes, 405 is a client error: the server is saying something about the request needs to change.
Does an uptime monitor treat 405 as down?
By default, yes: Uptenna counts anything outside 200-399 as a failed check and opens an incident after two failures in a row. You can change the expected status per monitor.
Related status codes
Find out the moment your site returns 405
Uptime checks, cron job heartbeats and a public status page, with an alert when something breaks. Free: 5 monitors checked every 5 minutes and email alerts. Pro ($9/month): checks every minute, Slack, Discord, Telegram and webhooks, SSL expiry warnings.
- No card required
- Status page included
- Email alerts included