Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Return a 404 or 500 status code #969

@tislars

Description

@tislars
  • I'm submitting a ...
- [ ] bug report
- [x] feature request
  • What modules are related to this Issue?
- [ ] aspnetcore-engine
- [ ] common
- [x] express-engine
- [ ] hapi-engine
- [ ] module-map-ngfactory-loader
  • Do you want to request a feature or report a bug?
    Feature

  • What is the current behavior?
    When the user ends up on a non-existing page, the browser returns a 200 http status code.

  • What is the expected behavior?
    I'd would like to be able to return a 404 or 500 status code.

  • What is the motivation / use case for changing the behavior?
    For SEO it is important to return correct status codes.

  • Please tell us about your environment:

 - Angular version: 4
 - Browser: all
 - Language: Typscript
 - OS:  Mac OS X
 - Platform: NodeJS
  • Other information
    I followed this solution from a previous reported issue. However, my server.ts differs from theirs, as mine is the same as the official repository' one.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions