added exception codes to error logging and move exception handling for requests out into more appropriate location (in request handler method)