Bird
0
0

An API call /users?age=>30 returns an error. What is the likely cause?

medium📝 Debug Q6 of 15
Rest API - Query Parameters and Filtering
An API call /users?age=>30 returns an error. What is the likely cause?
AThe query parameter key is missing
BThe '>' character is not URL encoded
CThe HTTP method is incorrect
DThe API does not support filtering by age
Step-by-Step Solution
Solution:
  1. Step 1: Identify special characters in URL

    The '>' symbol is a special character and must be URL encoded to be valid in query strings.
  2. Step 2: Understand URL encoding rules

    Without encoding, the API sees invalid syntax causing an error.
  3. Final Answer:

    The '>' character is not URL encoded -> Option B
  4. Quick Check:

    Special characters must be encoded in URLs [OK]
Quick Trick: Encode special characters like > in URLs [OK]
Common Mistakes:
MISTAKES
  • Ignoring URL encoding rules
  • Assuming API lacks filter support
  • Blaming HTTP method instead of syntax

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes