I manage a REST API
that has an interface to POST
code from users. This code gets compiled and should send a result to the user but, since compiling can take a long time I prefer to send back to the user a 202 Accepted HTTP code.
On the event the user tries to GET
the resource again, what would be appropriate codes both for success, meaning the compilation has been successful, and error, meaning it was not?