mock http server to test http status code