Http Bad Request
open class HttpBadRequest(val rawBody: String, message: String, cause: Throwable? = null) : PortalException.Api
Thrown when the backend responds with HTTP 400 Bad Request.
Surfaces from the transport layer (io.portalhq.android.utils.extensions.toTextResponse) for every SDK call site backed by io.portalhq.android.utils.PortalRequests or io.portalhq.android.utils.requesters.HttpRequester. Callers can branch on this to distinguish validation failures (400) from network/5xx failures, which surface as HttpRequestFailed.
Sibling, not subclass: HttpBadRequest is a sibling of HttpRequestFailed under Api. A catch (e: HttpRequestFailed) will NOT catch HttpBadRequest. Use catch (e: HttpBadRequest) (or the Api umbrella) explicitly.