pulsar-edit / package-backend

Pulsar Server Backend for Packages
https://api.pulsar-edit.dev
MIT License
12 stars 11 forks source link

Handle GitHub HTTP Errors Properly #27

Closed confused-Techie closed 1 year ago

confused-Techie commented 1 year ago

Requirements

Description of the Change

In some API calls we expect to be able to handle errors returned, but some of these errors are emitted as events which don't have the same support to return properly.

This change defines a custom HTTP method to determine if we should handle the status code of the return, or pass it along to he default handler.