response

package
v1.8.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Ok - ok
	Ok = "OK"
	// RequestBodyNil - Request body is nil
	RequestBodyNil = "Request body is nil"
	// InvalidRequestMethod - Request Method is invalid
	InvalidRequestMethod = "Invalid HTTP Request Method"
	// TooManyRequests - too many requests
	TooManyRequests = "Max Requests Limit reached"
	// NoWriteKeyInBasicAuth - Failed to read writeKey from header
	NoWriteKeyInBasicAuth = "Failed to read writeKey from header"
	// NoWriteKeyInQueryParams - Failed to read writeKey from Query Params
	NoWriteKeyInQueryParams = "Failed to read writeKey from Query Params"
	// RequestBodyReadFailed - Failed to read body from request
	RequestBodyReadFailed = "Failed to read body from request"
	// RequestBodyTooLarge - Request size exceeds max limit
	RequestBodyTooLarge = "Request size exceeds max limit"
	// InvalidWriteKey - Invalid Write Key
	InvalidWriteKey = "Invalid Write Key"
	// InvalidJSON - Invalid JSON
	InvalidJSON = "Invalid JSON"
	// InvalidWebhookSource - Source does not accept webhook events
	InvalidWebhookSource = "Source does not accept webhook events"
	// SourceTransformerResponseErrorReadFailed - Failed to read error from source transformer response
	SourceTransformerResponseErrorReadFailed = "Failed to read error from source transformer response"
	// SourceDisabled - write key is present, but the source for it is disabled.
	SourceDisabled = "Source is disabled"
	// SourceTransformerFailed - Internal server error in source transformer
	SourceTransformerFailed = "Internal server error in source transformer"
	// SourceTransformerFailedToReadOutput - Output not found in source transformer response
	SourceTransformerFailedToReadOutput = "Output not found in source transformer response"
	// SourceTransformerInvalidResponseFormat - Invalid format of source transformer response
	SourceTransformerInvalidResponseFormat = "Invalid format of source transformer response"
	// SourceTransformerInvalidOutputFormatInResponse - Invalid output format in source transformer response
	SourceTransformerInvalidOutputFormatInResponse = "Invalid output format in source transformer response"
	// SourceTransformerInvalidOutputJSON - Invalid output json in source transformer response
	SourceTransformerInvalidOutputJSON = "Invalid output json in source transformer response"
	// NonIdentifiableRequest - Request neither has anonymousId nor userId
	NonIdentifiableRequest = "Request neither has anonymousId nor userId"
	// ErrorInMarshal - Error while marshalling
	ErrorInMarshal = "Error while marshalling"
	// ErrorInParseForm - Error during parsing form
	ErrorInParseForm = "Error during parsing form"
	// ErrorInParseMultiform - Error during parsing multiform
	ErrorInParseMultiform = "Error during parsing multiform"
	// NotRudderEvent = Event is not a Valid Rudder Event
	NotRudderEvent = "Event is not a valid rudder event"
	// ContextDeadlineExceeded - context deadline exceeded
	ContextDeadlineExceeded = "context deadline exceeded"
	// GatewayTimeout - Gateway timeout
	GatewayTimeout = "Gateway timeout"
)

Variables

This section is empty.

Functions

func GetErrorStatusCode added in v1.0.2

func GetErrorStatusCode(key string) int

func GetPixelResponse

func GetPixelResponse() string

func GetStatus

func GetStatus(key string) string

func MakeResponse

func MakeResponse(msg string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL