File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ const (
1616 connectionErr = errNS + "connection"
1717 unauthorizedErr = errNS + "unauthorized"
1818 invalidContactErr = errNS + "invalidContact"
19+ invalidProfileErr = errNS + "invalidProfile"
1920 unsupportedContactErr = errNS + "unsupportedContact"
2021 accountDoesNotExistErr = errNS + "accountDoesNotExist"
2122 badRevocationReasonErr = errNS + "badRevocationReason"
@@ -134,6 +135,14 @@ func InvalidContactProblem(detail string) *ProblemDetails {
134135 }
135136}
136137
138+ func InvalidProfileProblem (detail string ) * ProblemDetails {
139+ return & ProblemDetails {
140+ Type : invalidProfileErr ,
141+ Detail : detail ,
142+ HTTPStatus : http .StatusBadRequest ,
143+ }
144+ }
145+
137146func UnsupportedContactProblem (detail string ) * ProblemDetails {
138147 return & ProblemDetails {
139148 Type : unsupportedContactErr ,
Original file line number Diff line number Diff line change @@ -1747,7 +1747,7 @@ func (wfe *WebFrontEndImpl) NewOrder(
17471747 _ , ok := profiles [profileName ]
17481748 if ! ok {
17491749 wfe .sendError (
1750- acme .MalformedProblem (fmt .Sprintf ("Order includes unrecognized profile name %q" , profileName )), response )
1750+ acme .InvalidProfileProblem (fmt .Sprintf ("Order includes unrecognized profile name %q" , profileName )), response )
17511751 return
17521752 }
17531753
You can’t perform that action at this time.
0 commit comments