Clean up error responses