Fix error messages and status codes for steps
Fix error messages and status codes for tasks