Under what circumstances should an API method return HTTP status code - ProProfs Discuss
Topics
Products
Follow Us:

Under what circumstances should an API method return HTTP status code 401?



A. When the server is a teapot
B. When the client HAS provided authentication data, but the given user doesn¬īt have permission to perform the given action
C. When the client has not provided any authentication data, but the method requires it
D. When the client has issued a request for a method which doesn¬īt return any content, such as a DELETE method
E. When the client has made some unspecified mistake in the request, i.e. could be a missing property value when creating a resource

This question is part of Vef√ɬĺj√ɬ≥nustur
Asked by Vidare, Last updated: Apr 02, 2020

+ Answer
Request

1 Answer

vidare

Vidare

Answered Nov 15, 2017

When the client has not provided any authentication data, but the method requires it
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.