added method to detect status using raw response body