Fix status codes in error responses