Error Reference
method-not-allowed
| Field | Value |
|---|---|
| Type URI | https://docs.kordiam.app/docs/errors/method-not-allowed |
| HTTP Status | 405 Method Not Allowed |
Description
The HTTP method used in the request is not supported for the target endpoint. The server understands the request URL, but the specific method (GET, POST, PUT, DELETE, etc.) is not allowed.
Response Example
Code
Common Causes
- Using POST instead of PUT for an update operation
- Using GET on a write-only endpoint
- Using DELETE on an endpoint that does not support deletion
How to Fix
Check the API documentation for the endpoint to see which HTTP methods are supported. When Spring can determine them, the response includes supportedMethods. Update your request to use one of the supported methods and retry.
Last modified on