mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-09-02 22:56:13 +08:00
Replace the raw errors.New private key path failures, the duplicated algorithm mismatch gin.H response and the ad hoc 500 for a failed key removal with scoped errors (ErrPrivateKeyPathRequired, ErrPrivateKeyPathNotAbsolute, ErrKeyfileDelete in host_setup; ErrHostKeyAlgorithmMismatch in host_ssh). Validation failures keep their 400 status via abortBadRequest, the remove failure goes through cosy.ErrHandler. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>