Skip to content

ItzOuluhh/html-code-pages

Repository files navigation

Error Code Pages

This package is made for the people who don't feel like creating their own error page. It contains all HTML codes, 100, 200, 300, 400 and 500.

It is super fast to use and easy for people who need a super simple yet beautiful html code page.

Get Started

Install the package

npm install html-code-pages

Create your first error page

import { NotFound } from "html-code-pages";
import React from "react";

// EXAMPLE PAGE //

function App() {
  return (
    <>
      <NotFound />
    </>
  );
}
export default App;

With custom error description

import { OK } from "html-code-pages/lib/200"; // Imports only 200 errors
import React from "react";

// EXAMPLE PAGE //

function App() {
  return (
    <>
      <OK customText="This is a 404 error!" />
    </>
  );
}
export default App;
This example is based on a react project!

Screenshots

App Screenshot

Authors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published