More accurate error handling for the client_body_reader