Skip to content

Banking.ts authorization failure returns 404 instead of 403 #247

@beejones

Description

@beejones

When authentication passes but validation fails, we need to return 403 and not 404.
This is an example of what is in the code on the endpoints
if (!validateUserId(userId)) {
return {
statusCode: 404,
};
}
The status code must be 403.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions