kong
kong copied to clipboard
chore(error_handlers): define response message for trace method 405 error status code
Summary
When nginx blocks request with trace method from client, it hits the default error message in kong which is "The upstream server responded with 405", it is a little ambiguous. Actually the request doesn't reach upstream. Define a detail message "Method not allowed" for 405 status code.
@liverpool8056 Could you add a test case for this PR?
@dndx So sorrrrrrry for missing test case, and thank you for helping me to correct it, I added the test case in the new commit.
Should we add an entry in changelog?
Due to PR #9513, we should rebase the PR and change the index from string to number.
@chronolaw already done
pinging @fffonion for merge.