This diff introduces changes to the `send_notif_to_apns` function to handle the HTTP error code inside the function instead of passing it to the upper level. Passing to the upper level and handling it in another place and then inside the function doesn't make sense. The better approach here is to handle the errors inside the Rust function and return an `Error` incase if something goes wrong.
Related linear task: ENG-