50 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)
830/// Produces a <see cref="StatusCodes.Status201Created"/> response. 837/// Produces a <see cref="StatusCodes.Status201Created"/> response. 846/// Produces a <see cref="StatusCodes.Status201Created"/> response. 855/// Produces a <see cref="StatusCodes.Status201Created"/> response. 864/// Produces a <see cref="StatusCodes.Status201Created"/> response. 873/// Produces a <see cref="StatusCodes.Status201Created"/> response. 884/// Produces a <see cref="StatusCodes.Status201Created"/> response. 896/// Produces a <see cref="StatusCodes.Status201Created"/> response. 907/// Produces a <see cref="StatusCodes.Status201Created"/> response.
ResultsCache.StatusCodes.cs (2)
91StatusCodes.Status201Created => _status201Created ??= new(StatusCodes.Status201Created),
TypedResults.cs (9)
884/// Produces a <see cref="StatusCodes.Status201Created"/> response. 893/// Produces a <see cref="StatusCodes.Status201Created"/> response. 903/// Produces a <see cref="StatusCodes.Status201Created"/> response. 915/// Produces a <see cref="StatusCodes.Status201Created"/> response. 925/// Produces a <see cref="StatusCodes.Status201Created"/> response. 937/// Produces a <see cref="StatusCodes.Status201Created"/> response. 949/// Produces a <see cref="StatusCodes.Status201Created"/> response. 958/// Produces a <see cref="StatusCodes.Status201Created"/> response. 972/// 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)
2034/// Creates a <see cref="CreatedResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response. 2044/// Creates a <see cref="CreatedResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response. 2056/// Creates a <see cref="CreatedResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response. 2068/// Creates a <see cref="CreatedAtActionResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response. 2078/// Creates a <see cref="CreatedAtActionResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response. 2089/// Creates a <see cref="CreatedAtActionResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response. 2105/// Creates a <see cref="CreatedAtRouteResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response. 2115/// Creates a <see cref="CreatedAtRouteResult"/> object that produces a <see cref="StatusCodes.Status201Created"/> response. 2125/// 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.Server.Kestrel.Core (2)
Internal\Http\ReasonPhrases.cs (2)
18private static readonly byte[] _bytesStatus201 = CreateStatusBytes(StatusCodes.Status201Created); 104StatusCodes.Status201Created => _bytesStatus201,