{"id":22640967,"url":"https://github.com/aliencube/aliencube.owin.page404","last_synced_at":"2025-08-01T21:10:40.416Z","repository":{"id":19177241,"uuid":"22409704","full_name":"aliencube/Aliencube.Owin.Page404","owner":"aliencube","description":"This provides an OWIN middleware that handles 404 status code by rendering either pre-built page or user-defined page.","archived":false,"fork":false,"pushed_at":"2014-08-04T02:58:30.000Z","size":212,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T05:26:53.323Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"DaneLyons/knowtify-gem","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aliencube.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-30T05:27:53.000Z","updated_at":"2014-11-15T22:08:30.000Z","dependencies_parsed_at":"2022-09-09T03:01:48.042Z","dependency_job_id":null,"html_url":"https://github.com/aliencube/Aliencube.Owin.Page404","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/aliencube/Aliencube.Owin.Page404","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliencube%2FAliencube.Owin.Page404","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliencube%2FAliencube.Owin.Page404/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliencube%2FAliencube.Owin.Page404/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliencube%2FAliencube.Owin.Page404/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aliencube","download_url":"https://codeload.github.com/aliencube/Aliencube.Owin.Page404/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliencube%2FAliencube.Owin.Page404/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268297399,"owners_count":24228124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-09T04:15:22.864Z","updated_at":"2025-08-01T21:10:40.389Z","avatar_url":"https://github.com/aliencube.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aliencube.Owin.Page404 #\n\n**Aliencube.Owin.Page404** provides an [OWIN](http://owin.org) middleware that handles 404 status code by rendering either pre-built page or user-defined page.\n\n\n## Dependencies ##\n\nThis library has dependencies on the following [NuGet](http://nuget.org) packages:\n\n* [Microsoft.Owin](http://www.nuget.org/packages/Microsoft.Owin)\n* [Microsoft.Owin.FileSystems](http://www.nuget.org/packages/Microsoft.Owin.FileSystems)\n* [Microsoft.Owin.StaticFiles](http://www.nuget.org/packages/Microsoft.Owin.StaticFiles)\n\n\u003e **NOTE**: At the time of writing **Aliencube.Owin.Page404**, all [NuGet](http://nuget.org) packages are of version 2.1.0.\n\n\n## Getting Started ##\n\nThis can be the easiest way to use **Aliencube.Owin.Page404**.\n\n```csharp\npublic class Startup\n{\n    public void Configuration(IAppBuilder app)\n    {\n        app.UsePage404();\n    }\n}\n```\n\nIf you want more control, try the following:\n\n```csharp\npublic class Startup\n{\n    public void Configuration(IAppBuilder app)\n    {\n        var options = new Page404Options() { FileSystem = new PhysicalFileSystem(@\".\") };\n        app.Use\u003cPage404Middleware\u003e(options);\n    }\n}\n```\n\n\n### `Page404Options` ###\n\n* `RequestPath`: The relative request path that maps to static resources. **NOT USED**\n* `FileSystem`: The file system used to locate resources.\n* `DefaultFileNames`: An ordered list of file names to select by default. List length and ordering may affect performance. List of default pages in order are `default.htm`, `default.html`, `index.htm` and `index.html`.\n* `IsLastMiddleware`: Gets or sets the value that specifies whether `Page404Middleware` sits at the last of the middleware chain or not. Default value is `true`. If `Page404Middleware` is the only middleware, set this `true`.\n* `UseCustom404Page`: Gets or sets the value that specifies whether to use the custom 404 page instead of the built-in page, or not. Default value is `false`.\n* `Custom404PagePath`: Gets or sets the custom 404 page path. Unless `UseCustom404Page` is `true`, this value will be ignored.\n* `Custom404PageDir`: Gets or sets the custom 404 page directory. Unless `UseCustom404Page` is `true`, this value will be ignored.\n\n\n## Contribution ##\n\nYour contribution is always welcome! All your work should be done in the`dev` branch. Once you finish your work, please send us a pull request on `dev` for review. Make sure that all your changes **MUST** be covered with test codes; otherwise yours won't get accepted.\n\n\n## License ##\n\n**Aliencube.Owin.Page404** is released under [MIT License](http://opensource.org/licenses/MIT).\n\n\u003e The MIT License (MIT)\n\u003e \n\u003e Copyright (c) 2014 [aliencube.org](http://aliencube.org)\n\u003e \n\u003e Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is\n\u003e furnished to do so, subject to the following conditions:\n\u003e \n\u003e The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\u003e \n\u003e THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliencube%2Faliencube.owin.page404","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faliencube%2Faliencube.owin.page404","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliencube%2Faliencube.owin.page404/lists"}