fix: Identifier formats json
et csv
permis lors d'insertion
Clarifier le message d'erreur d'insertion `Invalid Content-Type` pour inclure les formats permis
This commit is contained in:
parent
6ee96c3b97
commit
b8f05cb266
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ func (h *Handler) PostMembres(c echo.Context) error {
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
response.StatusCode = http.StatusBadRequest
|
response.StatusCode = http.StatusBadRequest
|
||||||
response.Message = "Invalid Content-Type"
|
response.Message = "Invalid Content-Type: Please use application/json or text/csv"
|
||||||
return c.JSON(response.StatusCode, response)
|
return c.JSON(response.StatusCode, response)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue