Soenneker.Constants.UserMessages 4.0.22

Prefix Reserved
dotnet add package Soenneker.Constants.UserMessages --version 4.0.22
                    
NuGet\Install-Package Soenneker.Constants.UserMessages -Version 4.0.22
                    
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="Soenneker.Constants.UserMessages" Version="4.0.22" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Constants.UserMessages" Version="4.0.22" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Constants.UserMessages" />
                    
Project file
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 Soenneker.Constants.UserMessages --version 4.0.22
                    
#r "nuget: Soenneker.Constants.UserMessages, 4.0.22"
                    
#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 Soenneker.Constants.UserMessages@4.0.22
                    
#: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=Soenneker.Constants.UserMessages&version=4.0.22
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Constants.UserMessages&version=4.0.22
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Constants.UserMessages

Provides neutral English title/detail pairs for common request failures.

Install

dotnet add package Soenneker.Constants.UserMessages

Messages

Scenario Title Detail
Unexpected failure Something went wrong We couldn't complete your request. Please try again.
Cancellation Request canceled The request was canceled before it could complete.
Timeout Request timeout The request took too long to complete.

Usage

using Soenneker.Constants.UserMessages;

return OperationResult.Fail(
    UserMessages.TimeoutTitle,
    UserMessages.TimeoutDetail);

The messages are intentionally generic and do not expose exception text or implementation details. Keep diagnostic information in server-side logs rather than appending it to these user-facing values.

These constants are English-only and are not a localization system. Applications with localized UI should map the failure scenarios to their own resources.

Because these are compile-time constants, their values are embedded into consuming assemblies. Rebuild consumers after upgrading if message text changes.

Product 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

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Constants.UserMessages:

Package Downloads
Soenneker.Extensions.HttpResponseMessage

A collection of helpful HttpResponseMessage extension methods

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.22 0 8/30/2026
4.0.21 21 8/29/2026
4.0.20 14,785 7/28/2026
4.0.19 6,855 7/16/2026
4.0.18 9,549 6/19/2026
4.0.17 10,398 6/5/2026
4.0.16 114 6/5/2026
4.0.15 12,236 4/22/2026
4.0.14 7,217 3/22/2026
4.0.13 3,795 3/12/2026
4.0.12 135 3/12/2026
4.0.11 152 3/12/2026
4.0.10 195 3/12/2026
4.0.9 4,303 3/10/2026
4.0.8 3,291 3/9/2026
4.0.7 126 3/9/2026
4.0.6 464 3/9/2026
4.0.5 5,861 3/4/2026
4.0.4 36,998 1/2/2026
4.0.3 11,380 12/8/2025
Loading failed

Document user-facing failure message contracts