added vegetation
This commit is contained in:
@@ -10,5 +10,8 @@ router = APIRouter()
|
||||
def read(job_id: str) -> JobResponse:
|
||||
job = get_job(job_id)
|
||||
if job is None:
|
||||
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="Job not found")
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_404_NOT_FOUND,
|
||||
detail={"code": "JOB_NOT_FOUND", "detail": "Job not found"},
|
||||
)
|
||||
return job
|
||||
|
||||
Reference in New Issue
Block a user