Skip to content

How do I get the HTTP status code in the error case? #10

Description

@njlr

It looks like the response gets turned into a string for all response codes other than 2xx:

else errorString response |> failwith)

However, I need to handle HTTP codes differently in my app.

How can I get the HTTP code for error cases (e.g. 401)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions