API Testing · Middle · Question 71 of 75

What does 405 Method Not Allowed require from the server?

Show the answer

Correct answer: An Allow header listing the supported methods

Explanation

Testers send unsupported methods (e.g. DELETE on a read-only endpoint) and check 405 with Allow, not 404 or 500.

Further reading

Problem with a question

API Testing · Middle · question 71

Test yourself

Take the API Testing · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz