incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andersen Max <max.ander...@redhat.com>
Subject Re: html response when querying for xml on bad url
Date Thu, 22 Jul 2010 08:48:28 GMT
anyone ? :)

/max

On Jul 15, 2010, at 15:21, Andersen Max wrote:

> Hi,
> 
> 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>
> <html>
> <head>
> <style type="text/css">
> body { text-align:center;font-family:helvetica,arial;font-size:22px;
>   color:#888;margin:20px}
> #c {margin:0 auto;width:500px;text-align:left}
> </style>
> </head>
> <body>
> <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"
> end</pre>
> </div>
> </body>
> </html>
> 
> shouldn't this be XML or is it expected clients simply don't even attempt parse this
in case of http 404 ?
> 
> /max
> 


Mime
View raw message