# 405 Method Not Allowed (HTTP Status Codes)

Source: https://www.observeone.com/community/errors/http/405-method-not-allowed

[ObserveOne](/)[Features](/#features)[Pricing](/#pricing)[Blog](/blog)[CLI](/cli)[Docs](/docs)

[Sign in](https://app.observeone.com/auth?tab=signin)[Start Free](https://app.observeone.com/auth?tab=signup)

[Error Dictionary](/community/errors)/[HTTP Status Codes](/community/errors/http)/405-method-not-allowedmedium

# 405 Method Not Allowed

The HTTP method (GET, POST, PUT, DELETE) is not supported for this endpoint.

## Common Causes

- 1Using POST on a GET-only endpoint
- 2API doesn't support the DELETE method
- 3Wrong HTTP verb in the request
- 4CORS preflight OPTIONS request not handled

## How to Fix

### Handle OPTIONS for CORS preflight

// Next.js API route
export async function OPTIONS() {
 return new Response(null, {
 headers: {
 'Allow': 'GET, POST, OPTIONS',
 },
 });
}Handle OPTIONS requests for CORS preflight.

## How ObserveOne Helps

ObserveOne validates API method support and detects misconfigured endpoints.

[Start Monitoring Free](https://app.observeone.com/auth?tab=signup)

## Related Errors

[400 Bad RequestThe server cannot process the request due to malformed syntax, invalid parameters, or bad encoding.](/community/errors/http/400-bad-request)[401 UnauthorizedThe request requires authentication. The client must provide valid credentials.](/community/errors/http/401-unauthorized)[403 ForbiddenThe server understood the request but refuses to authorize it. Authentication won't help — the user lacks permissions.](/community/errors/http/403-forbidden)[404 Not FoundThe server cannot find the requested resource. The URL may be wrong, the resource may have been deleted, or the route doesn't exist.](/community/errors/http/404-not-found)[410 GoneThe resource existed but has been permanently removed. Unlike 404, this explicitly tells clients the resource won't come back.](/community/errors/http/410-gone)

ObserveOne

Agentic QA and synthetic monitoring built for engineering teams. Plan, generate, and run suites from the web UI. Connect to CI for reliable coverage across critical journeys.

### Product

- [Features](/#features)
- [Pricing](/#pricing)
- [QA Coverage](/qa-coverage)
- [API Monitoring](/api-monitoring)
- [Free Website Check](/free-website-check)

### Developers

- [CLI](/cli)
- [Docs](/docs)
- [For Agents](/agents)
- [Self-host (oo-workers)](/workers)
- [Status Pages](/status)
- [Netlify Extension](https://app.netlify.com/extensions/mzs1lgc3-observeone)

### Resources

- [Blog](/blog)
- [Bug Book](/bug-book)
- [Guides](/community/guides)
- [Tools](/community/tools)
- [Error Dictionary](/community/errors)

### Compare

- [Tool Comparisons](/compare)
- [Tool Alternatives](/alternatives)
- [Best by Category](/best)
- [Search](/search)

© 2026 ObserveOne. All rights reserved.

[About](/about)[Privacy Policy](/privacy)[Terms of Service](/terms)[Affiliates](/affiliates)[Become an Affiliate](/affiliate-terms)
