func WithError(c *gin.Context, err error) error {
	return c.Error(errors.WithStackDepthIf(err, 1))
}
Attaches an error to the gin.Context object for the request and ensures that it
has a proper stacktrace associated with it when doing so.

If you just call c.Error(err) without using this function you'll likely end up
with an error that has no annotated stack on it.
package router
import (
	"fmt"
	"net/http"
	"os"
	"strings"
	"emperror.dev/errors"
	"github.com/apex/log"
	"github.com/gin-gonic/gin"
	"github.com/google/uuid"
	"github.com/pterodactyl/wings/server"
	"github.com/pterodactyl/wings/server/filesystem"
)
type RequestError struct {
	err     error
	uuid    string
	message string
	server  *server.Server
}