On HTTP error, the response includes a message such as:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>413 Request Entity Too Large</title>
<h1>Request Entity Too Large</h1>
<p>The data value transmitted exceeds the capacity limit.</p>
Since Etag handling was added, 412 error response does not include this message anymore.
Below is the test script I used.
#!/usr/bin/env python3
from werkzeug.exceptions import default_exceptions
from flask import Flask, abort
for http_exc in default_exceptions:
app = Flask('test')
client = app.test_client()
@app.route('/')
def test():
abort(http_exc)
response = client.get('/')
assert response.status_code == http_exc
if not response.get_data(as_text=True):
raise ValueError('Missing data for HTTP error {}'.format(http_exc))
Feeding it to git bisect pointed me to 092e59a.
On HTTP error, the response includes a message such as:
Since Etag handling was added, 412 error response does not include this message anymore.
Below is the test script I used.
Feeding it to
git bisectpointed me to 092e59a.