Skip to content

Add checks for http status code #51

Open
@mhewedy

Description

@mhewedy

I think it is better to add in the generated sample code a check (even if commented) for HTTP status code (just as a hint). example:

if resp.StatusCode != http.StatusOK {
	// handle status code not 200
}

BTW, I spent long time not sure what is the error until I realized at the end that, the status code check is not there 😄

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