Unsupported HTTP methods should return 405 and the methods allowed
Open
Nobody has claimed this yet.
newbie
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 298
- Avg merge
- 21h 43m
- Merged PRs (30d)
- 9
Description
Currently RestServiceErrorCode.UnsupportedHttpMethod maps to a 400 status code. Instead it should map to 405 and should return the methods allowed (POST, GET, DELETE and HEAD).
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating RestServiceErrorCode.UnsupportedHttpMethod and the HTTP response handling that maps it to a status code. Verify the behavior for unsupported methods and update or add tests so the response uses 405 and lists POST, GET, DELETE, and HEAD as allowed methods.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100