openfun / richie

:pencil: An opensource CMS to build education portals
https://richie.education
MIT License
256 stars 80 forks source link

Fix `HttpError` constructor with empty statusText #2344

Open jbpenrath opened 4 months ago

jbpenrath commented 4 months ago

Bug Report

Problematic Behavior Currently, if an HttpError is instantiated without statusText, this throw an error.

Expected behavior/code Even if statusText is empty, HttpError should be instantiable as well.

Additional context/Screenshots https://gip-fun-mooc.sentry.io/issues/5099067265/?environment=preproduction&project=1454000&query=is:unresolved&statsPeriod=7d&stream_index=1