log endpoint on request error