#

api-design

API design choices, error handling and conventions.

WebUse 404 Not Found for REST API GET Missing Resource

Return 404 Not Found for GET /api/{id} when the requested REST resource doesn't exist. Include a concise JSON error body. Use 200 for empty collections.

1 answer 1 view