Concept Flow - Why error handling differs from REST
Client sends request
Server processes request
REST: HTTP status code sent
Client interprets status code
Client sends GraphQL query
Server processes query
GraphQL: HTTP 200 always
Errors included in response body
Client checks 'errors' field in response
REST uses HTTP status codes for errors, while GraphQL always returns HTTP 200 and includes errors inside the response body.