Zyker.Core.ExceptionHandling
1.0.0
This package has not been indexed yet. It will appear in search results
and will be available for install/restore after indexing is complete.
The package icon will become available after this package is indexed.
dotnet add package Zyker.Core.ExceptionHandling --version 1.0.0
NuGet\Install-Package Zyker.Core.ExceptionHandling -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Zyker.Core.ExceptionHandling" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Zyker.Core.ExceptionHandling" Version="1.0.0" />
<PackageReference Include="Zyker.Core.ExceptionHandling" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Zyker.Core.ExceptionHandling --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Zyker.Core.ExceptionHandling, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Zyker.Core.ExceptionHandling@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Zyker.Core.ExceptionHandling&version=1.0.0
#tool nuget:?package=Zyker.Core.ExceptionHandling&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Common API exceptions filters
Provides a set of strongly-typed exceptions designed for API development. Each exception maps to a specific HTTP status code, making it easy to build consistent error handling and response middleware pipelines.
Available Exceptions
| Exception | HTTP Status Code | Description |
|---|---|---|
BadRequestException |
400 Bad Request | The request is invalid, malformed, or contains unsupported parameters. |
ConflictException |
409 Conflict | The request conflicts with the current state of the resource. |
ForbiddenException |
403 Forbidden | The user is authenticated but does not have sufficient permissions. |
InternalException |
500 Internal Server Error | An unexpected server-side error has occurred. |
NotFoundException |
404 Not Found | The requested resource could not be found. |
NotImplementedException |
501 Not Implemented | The requested functionality has not been implemented. |
TooManyRequestsException |
429 Too Many Requests | The client has exceeded an allowed request rate or quota. |
UnauthorizedException |
401 Unauthorized | Authentication is required or authentication credentials are invalid. |
ValidationException |
400 Bad Request | The request is valid but fails business or input validation rules. |
Basic Usage
public async Task<User> GetUserAsync(Guid id)
{
var user = await repository.GetByIdAsync(id);
if (user is null)
{
throw new NotFoundException(
$"User '{id}' was not found.",
ApiErrorCodes.NOT_FOUND);
}
return user;
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.AspNetCore.Mvc (>= 2.3.13)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 0 | 11/10/2026 |
| 1.0.0-prerelease.6 | 0 | 11/10/2026 |
| 1.0.0-prerelease.5 | 0 | 11/10/2026 |
| 1.0.0-prerelease.4 | 0 | 11/10/2026 |
| 1.0.0-prerelease.3 | 0 | 11/10/2026 |