nmfta-repo / nmfta-opentelematics-api

API Blueprint for Open Telematics API
Apache License 2.0
13 stars 6 forks source link

Return 202 instead of 204 while processing export #119

Closed derek-zonar closed 5 years ago

derek-zonar commented 5 years ago

204 indicates the request has been successfully completed and there is no further content for the client to receive. 202 indicates the request has been received but it still processing.

The 204 (No Content) status code indicates that the server has successfully fulfilled the request and that there is no additional content to send in the response payload body.

vs

The 202 (Accepted) status code indicates that the request has been accepted for processing, but the processing has not been completed.

BenGardiner commented 5 years ago

Derek, thank you! This seems like a nice refinement to me -- @jmpopper I'm assuming this change isn't a problem for you or the prototype?

jmpopper commented 5 years ago

@BenGardiner @derek-zonar -- Returning a 202 should be no problem at all! Thank you.