canonical / pebble

Pebble is a lightweight Linux service manager with layered configuration and an HTTP API.
https://canonical-pebble.readthedocs-hosted.com/
GNU General Public License v3.0
146 stars 54 forks source link

fix(daemon): Export error responders from daemon.response #360

Closed thp-canonical closed 7 months ago

thp-canonical commented 7 months ago

This brings the error response namings in line with snapd: daemon/errors.go in snapd. Split off from #358. While currently the error responses are used exclusively in the daemon package, once AccessChecker is available, it should be possible for other packages to create error responders to implement their AccessChecker variants.