Skip to content

Commit

Permalink
docs: add missing error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Mar 23, 2022
1 parent 97bb638 commit b854bb8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions selfservice/flow/login/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ type submitSelfServiceLoginFlowBody struct{}
// 200: successfulSelfServiceLoginWithoutBrowser
// 303: emptyResponse
// 400: selfServiceLoginFlow
// 410: jsonError
// 422: selfServiceBrowserLocationChangeRequiredError
// 500: jsonError
func (h *Handler) submitFlow(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
Expand Down
3 changes: 2 additions & 1 deletion selfservice/flow/recovery/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,9 @@ type submitSelfServiceRecoveryFlowBody struct{}
//
// Responses:
// 200: selfServiceRecoveryFlow
// 400: selfServiceRecoveryFlow
// 303: emptyResponse
// 400: selfServiceRecoveryFlow
// 410: jsonError
// 500: jsonError
func (h *Handler) submitFlow(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
rid, err := flow.GetFlowID(r)
Expand Down
1 change: 1 addition & 0 deletions selfservice/flow/registration/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ type submitSelfServiceRegistrationFlowBody struct{}
// 200: successfulSelfServiceRegistrationWithoutBrowser
// 303: emptyResponse
// 400: selfServiceRegistrationFlow
// 410: jsonError
// 422: selfServiceBrowserLocationChangeRequiredError
// 500: jsonError
func (h *Handler) submitFlow(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
Expand Down
3 changes: 2 additions & 1 deletion selfservice/flow/settings/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,9 @@ type initializeSelfServiceSettingsFlowForBrowsers struct {
// Responses:
// 200: selfServiceSettingsFlow
// 303: emptyResponse
// 400: jsonError
// 401: jsonError
// 403: jsonError
// 400: jsonError
// 500: jsonError
func (h *Handler) initBrowserFlow(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
s, err := h.d.SessionManager().FetchFromRequest(r.Context(), r)
Expand Down Expand Up @@ -483,6 +483,7 @@ type submitSelfServiceSettingsFlowBody struct{}
// 400: selfServiceSettingsFlow
// 401: jsonError
// 403: jsonError
// 410: jsonError
// 422: selfServiceBrowserLocationChangeRequiredError
// 500: jsonError
func (h *Handler) submitSettingsFlow(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
Expand Down
3 changes: 2 additions & 1 deletion selfservice/flow/verification/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,9 @@ type submitSelfServiceVerificationFlowBody struct{}
//
// Responses:
// 200: selfServiceVerificationFlow
// 400: selfServiceVerificationFlow
// 303: emptyResponse
// 400: selfServiceVerificationFlow
// 410: jsonError
// 500: jsonError
func (h *Handler) submitFlow(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
rid, err := flow.GetFlowID(r)
Expand Down

0 comments on commit b854bb8

Please sign in to comment.