@@ -0,0 +1,469 @@
+from rest_framework import status%0Afrom rest_framework.exceptions import APIException%0A%0A%0Aclass JobNotReadyError(APIException):%0A    status_code = status.HTTP_428_PRECONDITION_REQUIRED%0A    default_code = 'precondition_required'%0A    default_detail = 'The prepare job has not finished yet.'%0A%0A%0Aclass JobFailedError(APIException):%0A    status_code = status.HTTP_412_PRECONDITION_FAILED%0A    default_code = 'precondition_failed'%0A    default_detail = 'The prepare job has failed.'%0A

Add custom exceptions for two-step endpoints