davidby-influx
a3fd489864
fix: corrrectly return 4XX errors instead of 5XX errors ( #24519 )
...
HTTP 5XX errors were being returned incorrectly from
BoltDB errors that were actually bad requests, e.g.,
names that were too long for buckets, users, and
organizations. Map BoltDB errors to correct Influx
errors and return 4XX errors where appropriate. Also
add op codes to more errors
2023-12-27 08:21:09 -08:00
Sam Arnold
5015297d40
fix: more expressive errors ( #22448 )
...
* fix: more expressive errors
Closes #22446
* fix: server only logging for untyped errors
* chore: fix formatting
2021-09-13 15:12:35 -04:00
Daniel Moran
00afd95cb7
refactor: automated move of errors and id from root to kit ( #21101 )
...
Co-authored-by: Sam Arnold <sarnold@influxdata.com>
2021-03-30 14:10:02 -04:00
Daniel Moran
316eaa24b4
feat(http): add config option to disable metrics endpoint in influxd ( #20963 )
2021-03-15 15:11:23 -04:00
Stuart Carnie
9c4dfed391
feat: Add ENotImplemented error code
...
This is more explicit that EInternal, allowing APIs to indicate
a potentially temporary status of "501 Not implemented"
2020-09-24 11:11:46 -07:00
Lyon Hill
46d4f7d7bb
chore(tenant): point tests to new tenant service ( #19477 )
...
Now that the tenant service is complete we should be using it for all
test instead of the kv.Service.
2020-09-02 11:50:26 -06:00
Ben Johnson
97960a5930
feat(http): Client disconnections should return a HTTP 499 error code.
...
This commit checks http.Request.Context().Err() to see if the context
has been canceled before writing an error code. It uses the non-standard
Nginx 499 error code for client disconnection.
2020-05-14 14:51:57 -06:00
George
67307d804e
chore(errors): interpret more cases as influxdb error type in http.CheckError ( #17888 )
2020-04-30 17:55:17 +01:00
Jonathan A. Sternberg
0ae8bebd75
refactor: rewrite imports to include the /v2 suffix for version 2
2020-04-03 12:39:20 -05:00
Johnny Steenbergen
ba803d2046
feat(kit): add http api decoder/responder
2020-02-04 09:43:51 -08:00
Johnny Steenbergen
2b0b32abe8
chore(http): pull out eror handler into kit pkg for portability
2020-02-03 12:39:47 -08:00