You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library focuses on handling the response body (decoding to errors, data, metadata per the JSON:API specification). Since a 204 response has no response body, there's nothing to decode using this library. The specifics of an implementation for this response code would depend on which networking library you were using, but I would suspect that it is generally not too difficult to handle 204 codes explicitly by not trying to do anything with the response body.
I'm happy to help think through this further, though, especially if I am missing part of the question.
Activity
mattpolzin commentedon Jan 22, 2024
This library focuses on handling the response body (decoding to errors, data, metadata per the
JSON:APIspecification). Since a204response has no response body, there's nothing to decode using this library. The specifics of an implementation for this response code would depend on which networking library you were using, but I would suspect that it is generally not too difficult to handle204codes explicitly by not trying to do anything with the response body.I'm happy to help think through this further, though, especially if I am missing part of the question.