GenerateRandomSearch

Mock API Error Generator

Generates a sample JSON error-response payload — code, message and status together — for testing how your client handles a failed API call, not just a successful one.

How to use this tool

  1. Press generate for an error payload.
  2. Copy it, or generate again for another one.

Common use cases

  • Testing error-handling UI
  • Mock-server fixture data
  • API-client error-path tests