Bird
Raised Fist0

A developer adds this header to an API response:

medium📝 Debug Q6 of Q15
Rest API - Versioning Strategies
A developer adds this header to an API response:
Deprecation: yes

What is the issue with this header?
AThe header should be lowercase
BThe header name is incorrect
CThe value should be a date, not 'yes'
DThe header is missing a reason phrase
Step-by-Step Solution
Solution:
  1. Step 1: Check the expected Deprecation header format

    Deprecation header requires an ISO 8601 date indicating when deprecation started.
  2. Step 2: Identify the incorrect value

    The value 'yes' is invalid; it must be a date string.
  3. Final Answer:

    The value should be a date, not 'yes' -> Option C
  4. Quick Check:

    Deprecation header value = date, not boolean [OK]
Quick Trick: Deprecation header needs a date value [OK]
Common Mistakes:
MISTAKES
  • Using boolean or text instead of date
  • Assuming header name case matters
  • Expecting a reason phrase in header

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes