github.com/free5gc/openapi@v1.0.8/Nsmf_PDUSession/errors.go (about) 1 package Nsmf_PDUSession 2 3 import ( 4 "net/http" 5 6 "github.com/free5gc/openapi/models" 7 ) 8 9 var ( 10 N1SmError = models.ProblemDetails{ 11 Title: "Invalid N1 Message", 12 Status: http.StatusForbidden, 13 Detail: "N1 Message Error", 14 Cause: "N1_SM_ERROR", 15 } 16 N2SmError = models.ProblemDetails{ 17 Title: "Invalid N2 Message", 18 Status: http.StatusForbidden, 19 Detail: "N2 Message Error", 20 Cause: "N2_SM_ERROR", 21 } 22 DnnDeniedError = models.ProblemDetails{ 23 Title: "DNN Denied", 24 Status: http.StatusForbidden, 25 Detail: "The subscriber does not have the necessary subscription to access the DNN", 26 Cause: "DNN_DENIED", 27 InvalidParams: nil, 28 } 29 DnnNotSupported = models.ProblemDetails{ 30 Title: "DNN Not Supported", 31 Status: http.StatusForbidden, 32 Detail: "The DNN is not supported by the SMF.", 33 Cause: "DNN_NOT_SUPPORTED", 34 InvalidParams: nil, 35 } 36 InsufficientResourceSliceDnn = models.ProblemDetails{ 37 Title: "DNN Resource insufficient", 38 Status: http.StatusInternalServerError, 39 Detail: "The request cannot be provided due to insufficient resources for the specific slice and DNN.", 40 Cause: "INSUFFICIENT_RESOURCES_SLICE_DNN", 41 InvalidParams: nil, 42 } 43 SubscriptionDenied = models.ProblemDetails{ 44 Title: "Subscription Denied", 45 Status: http.StatusForbidden, 46 Detail: "This indicates an error, other than those listed in this table, due to lack of necessary subscription to serve the UE request.", 47 Cause: "SUBSCRIPTION_DENIED", 48 InvalidParams: nil, 49 } 50 NetworkFailure = models.ProblemDetails{ 51 Title: "Network failure", 52 Status: http.StatusGatewayTimeout, 53 Detail: "The request is rejected due to a network problem.", 54 Cause: "NETWORK_FAILURE", 55 InvalidParams: nil, 56 } 57 SmContextStateMismatchActive = models.ProblemDetails{ 58 Title: "SMContext state mismatch", 59 Status: http.StatusForbidden, 60 Detail: "The SMContext State should be Active State.", 61 } 62 SmContextStateMismatchInActive = models.ProblemDetails{ 63 Title: "SMContext state mismatch", 64 Status: http.StatusForbidden, 65 Detail: "The SMContext State should be InActive State.", 66 } 67 )