Better client error reporting on API failure