Bird
0
0

Identify the error in this authentication header usage:

medium📝 Debug Q14 of 15
Rest API - API Documentation
Identify the error in this authentication header usage:
headers: {
  'Authorization': 'BearerToken abc123'
}
AMissing space between 'Bearer' and token
BToken should be in lowercase
CAuthorization header should be 'Auth' instead
DToken must be sent as a query parameter
Step-by-Step Solution
Solution:
  1. Step 1: Check Authorization header format

    The correct format requires a space between 'Bearer' and the token string.
  2. Step 2: Verify the given header

    The header uses 'BearerToken' without space, which is incorrect.
  3. Final Answer:

    Missing space between 'Bearer' and token -> Option A
  4. Quick Check:

    Bearer and token need space [OK]
Quick Trick: Add space after 'Bearer' before token [OK]
Common Mistakes:
MISTAKES
  • Writing 'BearerToken' as one word
  • Using wrong header name like 'Auth'
  • Sending token in URL instead of header

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes