Concept Flow - Content type negotiation
Client sends HTTP request
Server checks Accept header
Match supported content types?
No→Respond 406 Not Acceptable
Yes
Select best content type
Serialize response data accordingly
Send HTTP response with Content-Type header
The server reads the client's Accept header, chooses a supported content type, serializes the response, and sends it back with the correct Content-Type.