While testing the API, I sent a request missing a required field… and got stung by a 400 Bad Request! The server wasn’t happy, and rightly so. Honey, always check your payloads!

Type of testing: Endpoint Testing

Status: Code 400

Steps to Reproduce(Mock Server):

  1. Open Postman
  2. Send POST request to /orders with body missing required field (customerId)
  3. Observe 400 Bad Request and error message in response body

Added screenshot of request & response

What This Shows:

  • The API correctly validates inputs and enforces required fields.
  • Proper use of HTTP 4xx codes for client errors.

Pro Tips:

  • Test with other invalid payloads: wrong types, extra fields, empty strings.
  • Check headers and auth tokens as well

Lesson:

“You sent chaos, the API returned 400. Fair deal.”