HttpResponseManager class

Always Singleton

Constructors

HttpResponseManager()
Always Singleton
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
list List<HttpStatusCode>
All available Http statuses
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getHttpStatus({required int statusCode, String? message}) HttpStatusCode
Provide HttpStatusCode related for statusCode
getMessage({required int statusCode}) String
Return default message for the statusCode
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replaceMessage({required int statusCode, required String message}) → void
Replace the default message for the specified status code.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance HttpResponseManager
final