Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

jsonapi.MarshalPayload sets response status to 200, but I want 201 (created)Β #218

@gabbottron

Description

@gabbottron

I am using jsonapi with gin in a go project. In my create handlers I need to marshal the response and send it back, but the function sets the response code to 200 automagically and I want 201. Gin will not let me override the 200 response after this code block runs. Could you allow for a custom response code on this function if you insist on setting headers?

Thanks!
-Geoff

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