Skip to content
This repository was archived by the owner on Dec 5, 2022. It is now read-only.
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

Need to change the response status code when rendered the fallback url. #333

Description

@Pragnesh-Er2007

I want to change response status code when fragment request send to call fallback url. Which is set in request-handler.js

fragment.once('fallback', err => {
this.emit('error', request, err);
            span.setTag(Tags.HTTP_STATUS_CODE, 500);
            response.writeHead(500, responseHeaders);
            resultStream.pipe(contentLengthStream).pipe(response);
  });

Our fragment is already handle this error means underlying fragment is down so render the fallback url so it is handle error so we need to return 200 in place 500.
So we have any extension where we need to change this status code?

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