Skip to content

Commit

Permalink
Add more status codes
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
  • Loading branch information
Jarema committed Apr 26, 2024
1 parent 25a1e89 commit 5954952
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/Nats/NatsMessage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ public struct NatsMessage {
}

public struct StatusCode: Equatable {
public static let idleHeartbeat = StatusCode(503)
public static let ok = StatusCode(200)
public static let notFound = StatusCode(404)
public static let timeout = StatusCode(408)
public static let noResponders = StatusCode(503)
public static let requestTerminated = StatusCode(409)

let value: UInt16

Expand Down

0 comments on commit 5954952

Please sign in to comment.