UNPKG

871 BTypeScriptView Raw
1/** The status of an event. */
2export declare enum Status {
3 /** The status could not be determined. */
4 Unknown = "unknown",
5 /** The event was skipped due to configuration or callbacks. */
6 Skipped = "skipped",
7 /** The event was sent to Sentry successfully. */
8 Success = "success",
9 /** The client is currently rate limited and will try again later. */
10 RateLimit = "rate_limit",
11 /** The event could not be processed. */
12 Invalid = "invalid",
13 /** A server-side error ocurred during submission. */
14 Failed = "failed"
15}
16export declare namespace Status {
17 /**
18 * Converts a HTTP status code into a {@link Status}.
19 *
20 * @param code The HTTP response status code.
21 * @returns The send status or {@link Status.Unknown}.
22 */
23 function fromHttpCode(code: number): Status;
24}
25//# sourceMappingURL=status.d.ts.map
\No newline at end of file