API-23 — Invalid Endpoint Returns 404 JSON Response

Error Handling
Backend API
API-23 — Invalid Endpoint Returns 404 JSON Response
Published

2026-06-17

API-23 — Invalid Endpoint Returns 404 JSON Response

Target

Backend API — Error Handling

Preconditions

  • The API server is accessible

Steps

  1. Send GET https://project6.dxtserver.com/drivelink_new/public/api/v1/endpoint-that-does-not-exist
  2. Observe the response

Expected Result

  • HTTP 404 is returned
  • The response body is valid JSON
  • The error message is descriptive but does not expose internal details