hashicorp / hashicorp/consul

firing an event whose payload is too big should return client error, not server error

Open
#2,866 0 comments 0 reactions 0 assignees View on GitHub
theme/api type/enhancement
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

Consul v0.7.5

Firing an event via the HTTP api (`PUT /v1/event/fire/foo`) with a payload that is too big results in a 500 from the agent with a message like `user event exceeds limit of 512 bytes`. This should be [`413`](https://httpstatuses.com/413) or maybe [`727`](https://github.com/joho/7XX-rfc).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.