You can use the getString function from the Http module. This will return you any string returned from the HTTP request without trying to convert to a Json value.
If you need to use Http.send , you can do something like this:
Http.send Http.defaultSettings httpConfig |> Task.perform FetchFail (always DeleteUserSuccess)
This assumes that DeleteUserSuccess modified to define without a type parameter:
type Msg = ... DeleteUserSuccess
source share