a simple REST class to test various http methods and simulate timeouts