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)?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions