Skip to content

Commit

Permalink
Updated error code
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartendeKruijf committed May 21, 2024
1 parent 627d59b commit b77772a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/playbook/playbook_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (plabookCtrl *playbookController) submitPlaybook(g *gin.Context) {
if err.Error() == "duplicate" {
SendErrorResponse(g, http.StatusConflict, "Provided duplicate playbook, already in database", "POST /playbook")
} else {
SendErrorResponse(g, http.StatusInternalServerError, "Internal server error, could not create playbook. Is the playbook correct?", "POST /playbook")
SendErrorResponse(g, http.StatusBadRequest, "Could not create playbook. Is the playbook correct?", "POST /playbook")
}
return
}
Expand Down

0 comments on commit b77772a

Please sign in to comment.