Closes #900546
I am building a service that accepts http uploads via dput.
My service does a number of checks when it receives uploads and it can return 4XX errors with messages.
I would love it if these messages made it to the user!
Example output:
130|aviau@cranberry:~/git/debian-pkg/build-area$ dput autodeb golang-github-xlab-treeprint_0.0~git20180324.505f0ee-1_amd64.changes
Uploading golang-github-xlab-treeprint using http to autodeb (host: localhost:8071; directory: /upload)
running allowed-distribution: check whether a local profile permits uploads to the target distribution
running checksum: verify checksums before uploading
running suite-mismatch: check the target distribution for common errors
running gpg: check GnuPG signatures before the upload
Not checking GPG signature due to allow_unsigned_uploads being set.
Uploading golang-github-xlab-treeprint_0.0~git20180324.505f0ee-1.dsc
Uploading golang-github-xlab-treeprint_0.0~git20180324.505f0ee.orig.tar.xz
Uploading golang-github-xlab-treeprint_0.0~git20180324.505f0ee-1.debian.tar.xz
Uploading golang-github-xlab-treeprint-dev_0.0~git20180324.505f0ee-1_all.deb
HTTP error message: {"message":"only source uploads are accepted"}
HTTP Error 400: Bad Request