Files
chatlog/internal/errors/http_errors.go
2025-04-01 19:41:40 +08:00

12 lines
262 B
Go

package errors
import "net/http"
func InvalidArg(arg string) error {
return Newf(nil, http.StatusBadRequest, "invalid argument: %s", arg)
}
func HTTPShutDown(cause error) error {
return Newf(cause, http.StatusInternalServerError, "http server shut down")
}