 
       server = sinon.fakeServer.create();
       server.respondWith("POST", "/foo/bar",
-            [422, { "Content-Type": "application/json" },
-             '[{ "id": 12, "comment": "Hey there" }]']);
+            [422, { "Content-Type": "text/html" },
+             '<div id="foo" refresh="foo">Error occured</div>']);
       remote = new TurboGraft.Remote
         httpRequestType: "POST"
         httpUrl: "/foo/bar"


      server = sinon.fakeServer.create();
      server.respondWith("POST", "/foo/bar",
            [500, { "Content-Type": "application/json" },
             '[{ "id": 12, "comment": "Hey there" }]']);
      remote = new TurboGraft.Remote
        httpRequestType: "POST"
        httpUrl: "/foo/bar"

    it 'XHR=200: will trigger Page.refresh using XHR and refresh-on-success', ->
      server = sinon.fakeServer.create();
      server.respondWith("POST", "/foo/bar",
            [200, { "Content-Type": "text/html" },
             '<div>Hey there</div>']);

      remote = new TurboGraft.Remote
        httpRequestType: "POST"
