Files
gortsplib/statusmessages.go
2020-05-03 14:27:04 +02:00

57 lines
2.9 KiB
Go

package gortsplib
// StatusMessages is a map that contains the strings associated with every status code.
var StatusMessages = map[StatusCode]string{
StatusContinue: "Continue",
StatusOK: "OK",
StatusMovedPermanently: "Moved Permanently",
StatusFound: "Found",
StatusSeeOther: "See Other",
StatusNotModified: "Not Modified",
StatusUseProxy: "Use Proxy",
StatusBadRequest: "Bad Request",
StatusUnauthorized: "Unauthorized",
StatusPaymentRequired: "Payment Required",
StatusForbidden: "Forbidden",
StatusNotFound: "Not Found",
StatusMethodNotAllowed: "Method Not Allowed",
StatusNotAcceptable: "Not Acceptable",
StatusProxyAuthRequired: "Proxy Auth Required",
StatusRequestTimeout: "Request Timeout",
StatusGone: "Gone",
StatusPreconditionFailed: "Precondition Failed",
StatusRequestEntityTooLarge: "Request Entity Too Large",
StatusRequestURITooLong: "Request URI Too Long",
StatusUnsupportedMediaType: "Unsupported Media Type",
StatusParameterNotUnderstood: "Parameter Not Understood",
StatusNotEnoughBandwidth: "Not Enough Bandwidth",
StatusSessionNotFound: "Session Not Found",
StatusMethodNotValidInThisState: "Method Not Valid In This State",
StatusHeaderFieldNotValidForResource: "Header Field Not Valid for Resource",
StatusInvalidRange: "Invalid Range",
StatusParameterIsReadOnly: "Parameter Is Read-Only",
StatusAggregateOperationNotAllowed: "Aggregate Operation Not Allowed",
StatusOnlyAggregateOperationAllowed: "Only Aggregate Operation Allowed",
StatusUnsupportedTransport: "Unsupported Transport",
StatusDestinationUnreachable: "Destination Unreachable",
StatusDestinationProhibited: "Destination Prohibited",
StatusDataTransportNotReadyYet: "Data Transport Not Ready Yet",
StatusNotificationReasonUnknown: "Notification Reason Unknown",
StatusKeyManagementError: "Key Management Error",
StatusConnectionAuthorizationRequired: "Connection Authorization Required",
StatusConnectionCredentialsNotAccepted: "Connection Credentials Not Accepted",
StatusFailureToEstablishSecureConnection: "Failure to Establish Secure Connection",
StatusInternalServerError: "Internal Server Error",
StatusNotImplemented: "Not Implemented",
StatusBadGateway: "Bad Gateway",
StatusServiceUnavailable: "Service Unavailable",
StatusGatewayTimeout: "Gateway Timeout",
StatusRTSPVersionNotSupported: "RTSP Version Not Supported",
StatusOptionNotSupported: "Option Not Supported",
StatusProxyUnavailable: "Proxy Unavailable",
}