add support for checking custom reason phrase using status parameter