Add handleResponseStatuses test cases