chunkysteveo / OctoPrintAPI

Library for use with Arduino compatible micro controllers (web enabled) to access the Octoprint API on Raspberry Pi's running the Octoprint 3D printer web server by the brilliant Gina Häußge, aka @foosel.
GNU General Public License v2.0
42 stars 24 forks source link

Populate the HttpErrorBody String on an Http Error code #40

Closed jcassel closed 1 year ago

jcassel commented 1 year ago

A simple change to populate the public String HttpErrorBody

With this update a client will have the ability to know a little more about the error response. Maybe parse out the body and display something readable or at the very least just log the response body in as is.

The property is already present, HttpErrorBody, it was just not being populated.

chunkysteveo commented 1 year ago

Thank you for your contribution! I will include you in the readme notes when I (properly!) bump the revision numbers up(!)