Skip to content

How to handle responses with 200 **AND** 204 (No Content) #44

@clmnin

Description

@clmnin

We can handle a 204 with

suspend fun updateStatusOnServer(): NetworkResponse<Unit, ErrorType>

But here the response can only be Unit. But what if I can have a 200 responses when there is new content and 204 when there is no new content?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions