sentry-cocoa
sentry-cocoa copied to clipboard
Only delete envelopes when receiving HTTP status code 200
Description
The HTTPTransport only checks if we receive any type of response from the server and then deletes the envelopes. Instead, it should only delete the envelope when receiving a 200, as Java does and as the develop docs recommend.
https://github.com/getsentry/sentry-cocoa/blob/324f8b0085d0892f899f38bb015140f8195f9544/Sources/Sentry/SentryHttpTransport.m#L372-L394