I am developing a webservice that alllows users to request validation reports. Report generation might take up to 20 hours per report. When a new validation request is posted, I return a 202 Accepted answer with Location set to a processing queue (e.g.
/queue/5) When the queue resource is polled some processing information is provided:
Once processing completes successfully and the queue is polled, a 303 see other will redirect to the created resource (at
However if a processing error occurs on server, i simply return my queueResponse without redirect and status set to
Is this the best way to comunicate a processing error to the client? Or should instead simply a 500 Internal Server Error returned when polling the queue for a failed validation task?.....