fixed up error responses