incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andersen Max <>
Subject html response when querying for xml on bad url
Date Thu, 15 Jul 2010 13:21:48 GMT

Was playing around with deltacloud + the experimental java api client and noticed that
even though I'm setting up AcceptResponse for XML then when I'm hitting a bad url i'm getting
a HTML document back.

My specific case is requesting: http://localhost:3001/api/flavors

and getting back:

<!DOCTYPE html>
 <style type="text/css">
 body { text-align:center;font-family:helvetica,arial;font-size:22px;
 #c {margin:0 auto;width:500px;text-align:left}
 <h2>Sinatra doesn't know this ditty.</h2>
 <img src='/__sinatra__/404.png'>
 <div id="c">
   Try this:
   <pre>get '/api/flavors' do
 "Hello World"

shouldn't this be XML or is it expected clients simply don't even attempt parse this in case
of http 404 ?


View raw message