Skip to content

Fluent Responses task deletes "201" statuses #85

Open
@fgilio

Description

@fgilio

Desktop:

  • OS: Mac
  • OS Version: Monterrey 12.6.1
  • App Version: 1.0.3

Describe the bug
The Fluent Responses task is stripping out both the 200 and 201 response statuses.
I understand why that makes sense for 200, but 201 does have specific meaning and it's not the default.
I may be missing something, but this looks like a bug.

Screen Shot 2022-10-26 at 13 19 10

The original content for that response was:

return response([
    'CODE' => 'success',
    'data' => UserReferrer::create([
        'user_id' => $user->id,
        'referrer' => $request->referrer,

    ]),
], 201);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions