fixes response body on error
removes not needed error logging