Renamed enum ExceptionType to ExceptionCode and added the isExceptionCode method in RESTRequest