---
title: "ajit gupta (@ajitgupta50828) | Hashnode"
description: "developer. Read the latest articles by ajit gupta on Hashnode."
url: "https://hashnode.com/@ajitgupta50828"
---

@ajitgupta50828

# ajit gupta

@ajitgupta50828 · India · Joined August 2023

developer

### [Unexpected Token Error: Handling 404 Response in NextJS Application](https://nextjss.hashnode.dev/unexpected-token-error-handling-404-response-in-nextjs-application?utm_source=hashnode&utm_medium=feed)

const page = async() => { const session = await getServerSession(authOptions) if(!session){ redirect("/") } const response = await checkPdf() return ( <div> <ChatComponent name={session.user.name} heading={response===true?true:false}/> </div> ...

1 min read · [nextjss.hashnode.dev](https://nextjss.hashnode.dev/unexpected-token-error-handling-404-response-in-nextjs-application?utm_source=hashnode&utm_medium=feed)

[May 9, 2024](https://hashnode.com/posts/unexpected-token-error-handling-404-response-in-nextjs-application/663c6cfd62b6a3ab22144c8e)
