S
S
Steve2021-09-29 11:20:19
symfony
Steve, 2021-09-29 11:20:19

Intercept HTTP return other than 200 and send error to mail?

You need to catch an HTTP return other than 200 when requesting the Sendgrid API and log an error via email. How to implement please

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Gordinskiy, 2021-09-29
@DmitriyGordinskiy

Create a listener for the ResponseEvent event , and check the status already in it, and send the error for further processing

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question