menu

Prisma

🔴 The Prisma Spectrum community is not officially managed by Prisma's support team any more. Please seek help on GitHub or on Slack instead. Learn more: https://spectrum.chat/prisma/general/where-and-how-to-best-seek-help-with-questions-problems~687a1b8f-8658-4df3-8849-ea5ab3503f28

Channels
Chat
view-forward
# All channels
view-forward
# General
view-forward
# Beta
view-forward
# Community
view-forward
# GraphQL
view-forward
# OSS
view-forward
# Random
view-forward
Team

What is the best way to add custom error handling/codes from prisma server?

April 13, 2020 at 11:20pm

What is the best way to add custom error handling/codes from prisma server?

April 13, 2020 at 11:20pm
I would like to add a response code if a certain condition is hit on my server but don't know the simplest way to access the response. I was thinking of adding a middleware to set the code based on request context but didn't see any docs about how to do this. Anyone tried this?
No messages yet