Use proper HTTP code on empty response