Skip to content

Conversation

@leodiazsanchez
Copy link

In the OpenStack Swift API it is possible to send error text in the response body, however I notice that this feature is missing in the current implementation.

Here is a suggestion to include the error text in the returned error.

From documentation:
image

@leodiazsanchez
Copy link
Author

@ncw bump

Copy link
Owner

@ncw ncw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code looks great thanks :-)

I have a small concern though - I've seen enough badly configured proxies to know that sometimes the error message will be 1MB of HTML from the proxy.

What do you think the best way around this is? Maybe limit the size of the error message?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants