Skip to content

Commit 26cf880

Browse files
Updated error code (#159)
1 parent 627d59b commit 26cf880

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/playbook/playbook_api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (plabookCtrl *playbookController) submitPlaybook(g *gin.Context) {
9393
if err.Error() == "duplicate" {
9494
SendErrorResponse(g, http.StatusConflict, "Provided duplicate playbook, already in database", "POST /playbook")
9595
} else {
96-
SendErrorResponse(g, http.StatusInternalServerError, "Internal server error, could not create playbook. Is the playbook correct?", "POST /playbook")
96+
SendErrorResponse(g, http.StatusBadRequest, "Could not create playbook. Is the playbook correct?", "POST /playbook")
9797
}
9898
return
9999
}

0 commit comments

Comments
 (0)