mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 21:55:56 +03:00
[PR #666] [MERGED] Map errors to HTTP statuses #810
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#810
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fsouza/fake-gcs-server/pull/666
Author: @gaul
Created: 1/31/2022
Status: ✅ Merged
Merged: 2/3/2022
Merged by: @fsouza
Base:
main← Head:map-error-to-http-status📝 Commits (1)
947601eMap errors to HTTP statuses📊 Changes
3 files changed (+25 additions, -6 deletions)
View changed files
📝
fakestorage/json_response.go(+12 -0)📝
fakestorage/object.go(+9 -2)📝
fakestorage/upload.go(+4 -4)📄 Description
The initial motivation is to map
ENAMETOOLONGfrom 500 Internal Errorto 400 Bad Request. This prevents clients like gcsfuse from
unnecessarily retrying requests. This commit also remove some panic
call paths.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.