COSSAS / SOARCA

SOARCA - The Open Source CACAO-based Security Orchestrator!
https://cossas.github.io/SOARCA/
Apache License 2.0
49 stars 6 forks source link

Internal server error is used but should be bad request. #158

Closed MaartendeKruijf closed 1 month ago

MaartendeKruijf commented 1 month ago

Describe the bug The following line should return 400 as per documentation https://cossas.github.io/SOARCA/docs/core-components/api-design/

SendErrorResponse(g, http.StatusInternalServerError, "Internal server error, could not create playbook. Is the playbook correct?", "POST /playbook")