I am working on a POST HTTP API which does not modify or create any state on the server. The API is implemented with method POST as it needs to accept multiple complex inputs which would not be possible using query parameters.
What is the correct response status to return in case of conditional check failures (If-Match
/If-None-Match
) for such read-only POST APIs, should it be 304 Not Modified
or 412 Precondition Failed
?
Note: This is an internal service API where the client is aware that it is a non modifying request.