allow an error code to be communicated via the request object