Skip to content

Commit

Permalink
Add error to Nsmf_PDUSession (#2)
Browse files Browse the repository at this point in the history
Add ProblemDetails.
- SubscriptionDenied
- NetworkFailure
  • Loading branch information
matsumu-y committed Sep 8, 2021
1 parent ff8a047 commit b173231
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Nsmf_PDUSession/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,18 @@ var (
Cause: "INSUFFICIENT_RESOURCES_SLICE_DNN",
InvalidParams: nil,
}
SubscriptionDenied = models.ProblemDetails{
Title: "Subscription Denied",
Status: http.StatusForbidden,
Detail: "This indicates an error, other than those listed in this table, due to lack of necessary subscription to serve the UE request.",
Cause: "SUBSCRIPTION_DENIED",
InvalidParams: nil,
}
NetworkFailure = models.ProblemDetails{
Title: "Network failure",
Status: http.StatusGatewayTimeout,
Detail: "The request is rejected due to a network problem.",
Cause: "NETWORK_FAILURE",
InvalidParams: nil,
}
)

0 comments on commit b173231

Please sign in to comment.