MCPcopy Create free account
hub / github.com/gotenberg/gotenberg / NewSentinelHttpError

Function NewSentinelHttpError

pkg/modules/api/errors.go:19–24  ·  view source on GitHub ↗

NewSentinelHttpError creates a [SentinelHttpError]. The message will be sent as the response's body if returned from a handler, so make sure to not leak sensible information.

(status int, message string)

Source from the content-addressed store, hash-verified

17// as the response's body if returned from a handler, so make sure to not leak
18// sensible information.
19func NewSentinelHttpError(status int, message string) SentinelHttpError {
20 return SentinelHttpError{
21 status: status,
22 message: message,
23 }
24}
25
26// Error returns the message.
27func (err SentinelHttpError) Error() string {

Callers 15

ValidatePdfFormatsCompatFunction · 0.92
ValidateFacturXCompatFunction · 0.92
ValidatePdfEncryptCompatFunction · 0.92
EnsureStampFileFunction · 0.92
EnsureWatermarkFileFunction · 0.92
convertRouteFunction · 0.92
encryptRouteFunction · 0.92
facturXRouteFunction · 0.92
rejectFileSchemeFunction · 0.92
markdownToHtmlFunction · 0.92
convertUrlFunction · 0.92
handleChromiumErrorFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestNewSentinelHttpErrorFunction · 0.68