52 references to Status201Created
Microsoft.AspNetCore.Http.Results (32)
Created.cs (3)
49/// Gets the HTTP status code: <see cref="StatusCodes.Status201Created"/> 51public int StatusCode => StatusCodes.Status201Created; 84builder.Metadata.Add(new ProducesResponseTypeMetadata(StatusCodes.Status201Created, typeof(void)));
CreatedAtRoute.cs (3)
70/// Gets the HTTP status code: <see cref="StatusCodes.Status201Created"/> 72public int StatusCode => StatusCodes.Status201Created; 111builder.Metadata.Add(new ProducesResponseTypeMetadata(StatusCodes.Status201Created, typeof(void)));
CreatedAtRouteOfT.cs (3)
84/// Gets the HTTP status code: <see cref="StatusCodes.Status201Created"/> 86public int StatusCode => StatusCodes.Status201Created; 128builder.Metadata.Add(ProducesResponseTypeMetadata.CreateUnvalidated(typeof(TValue), StatusCodes.Status201Created, ContentTypeConstants.ApplicationJsonContentTypes));
CreatedOfT.cs (3)
64/// Gets the HTTP status code: <see cref="StatusCodes.Status201Created"/> 66public int StatusCode => StatusCodes.Status201Created; 102builder.Metadata.Add(ProducesResponseTypeMetadata.CreateUnvalidated(typeof(TValue), StatusCodes.Status201Created, ContentTypeConstants.ApplicationJsonContentTypes));
Results.cs (9)
832/// Produces a <see cref="StatusCodes.Status201Created"/> response. 839/// Produces a <see cref="StatusCodes.Status201Created"/> response. 848/// Produces a <see cref="StatusCodes.Status201Created"/> response. 857/// Produces a <see cref="StatusCodes.Status201Created"/> response. 866/// Produces a <see cref="StatusCodes.Status201Created"/> response. 875/// Produces a <see cref="StatusCodes.Status201Created"/> response. 886/// Produces a <see cref="StatusCodes.Status201Created"/> response. 898/// Produces a <see cref="StatusCodes.Status201Created"/> response. 909/// Produces a <see cref="StatusCodes.Status201Created"/> response.
ResultsCache.StatusCodes.cs (2)
91StatusCodes.Status201Created => _status201Created ??= new(StatusCodes.Status201Created),
TypedResults.cs (9)
886/// Produces a <see cref="StatusCodes.Status201Created"/> response. 895/// Produces a <see cref="StatusCodes.Status201Created"/> response. 905/// Produces a <see cref="StatusCodes.Status201Created"/> response. 917/// Produces a <see cref="StatusCodes.Status201Created"/> response. 927/// Produces a <see cref="StatusCodes.Status201Created"/> response. 939/// Produces a <see cref="StatusCodes.Status201Created"/> response. 951/// Produces a <see cref="StatusCodes.Status201Created"/> response. 960/// Produces a <see cref="StatusCodes.Status201Created"/> response. 974/// Produces a <see cref="StatusCodes.Status201Created"/> response.
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
ApiResponseTypeProvider.cs (2)
234if (declaredReturnType != null && (statusCode == StatusCodes.Status200OK || statusCode == StatusCodes.Status201Created)) 331if (inferredType != null && (statusCode == StatusCodes.Status200OK || statusCode == StatusCodes.Status201Created))
Microsoft.AspNetCore.Mvc.Core (14)
ControllerBase.cs (9)
2038/// Creates a <see cref="CreatedResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response. 2048/// Creates a <see cref="CreatedResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response. 2060/// Creates a <see cref="CreatedResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response. 2072/// Creates a <see cref="CreatedAtActionResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response. 2082/// Creates a <see cref="CreatedAtActionResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response. 2093/// Creates a <see cref="CreatedAtActionResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response. 2109/// Creates a <see cref="CreatedAtRouteResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response. 2119/// Creates a <see cref="CreatedAtRouteResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response. 2129/// Creates a <see cref="CreatedAtRouteResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response.
CreatedAtActionResult.cs (1)
19private const int DefaultStatusCode = StatusCodes.Status201Created;
CreatedAtRouteResult.cs (1)
19private const int DefaultStatusCode = StatusCodes.Status201Created;
CreatedResult.cs (1)
15private const int DefaultStatusCode = StatusCodes.Status201Created;
DefaultApiConventions.cs (2)
49[ProducesResponseType(StatusCodes.Status201Created)] 63[ProducesResponseType(StatusCodes.Status201Created)]
Microsoft.AspNetCore.OpenApi (2)
Services\OpenApiGenerator.cs (2)
130if (responseType != null && (statusCode == StatusCodes.Status200OK || statusCode == StatusCodes.Status201Created)) 161if (responseType != null && (statusCode == StatusCodes.Status200OK || statusCode == StatusCodes.Status201Created))
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\ReasonPhrases.cs (2)
18private static readonly byte[] _bytesStatus201 = CreateStatusBytes(StatusCodes.Status201Created); 104StatusCodes.Status201Created => _bytesStatus201,