Cannot get the response body following a 400 - Bad Request on a DELETE request

23 views
Skip to first unread message

Sérgio Nunes

unread,
Feb 19, 2016, 1:27:42 PM2/19/16
to Dispatch
Hi guys

I need to parse the response body following a 404 - Bad Request returned from a DELETE request. However, I'm getting an empty response body when I do:

Http(request("someUrl".DELETE).flatMap(response => handleResponse(response))


The status code is the correct one, though: 400

For POSTs and PUTs it works just fine, it's only with DELETEs that I'm struggling with.

Any idea on what I'm doing wrong or if this is a known issue? Someone else was complaining about the same in here: 

Thanks.




Reply all
Reply to author
Forward
0 new messages