Fixed error reporting of the HTTP interface