I created a function that transforms some data and sends it to FB Api. It works perfectly when Fb API responds with 200 code, otherwise function returns internal server erro