fix 500 http error

return after unsuccessful http attpempt