0

For context, I am working on an API in postman, where an http request can be authorized using an api key or basic authentication.

I was using 401 as a status code if a different authorization method was used. Is there a more suitable status code for that?

1 Answer 1

1

I think the appropriate status code would be 405 - method not allowed. But also status code 401 - unauthorized would work. More accurate would be the 405.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.