handleReject = reason => {
        const rejectedAction = getAction(reason, true);
        dispatch(rejectedAction);

        throw reason;
      }
Function: handleReject
Calls: getAction to construct the rejected action
Description: This function dispatches the rejected action and returns
the original Error object. Please note the developer is responsible
for constructing and throwing an Error object. The middleware does not
construct any Errors.