Bird
0
0

Which HTTP status code should the authorization server return after a successful authorization code request?

easy📝 Syntax Q3 of 15
Rest API - Authentication and Authorization
Which HTTP status code should the authorization server return after a successful authorization code request?
A500 Internal Server Error
B200 OK
C401 Unauthorized
D302 Found
Step-by-Step Solution
Solution:
  1. Step 1: Understand the redirect in Authorization Code Flow

    After user authorization, the server redirects the user-agent to the client app with the authorization code using a 302 redirect.
  2. Step 2: Identify correct status code

    302 Found is the standard status code for redirection with the code in the URL.
  3. Final Answer:

    302 Found -> Option D
  4. Quick Check:

    Authorization code redirect = 302 Found [OK]
Quick Trick: Authorization code sent via 302 redirect [OK]
Common Mistakes:
  • Expecting 200 OK instead of redirect
  • Confusing 401 Unauthorized with redirect
  • Assuming server error codes on success

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes