Skip to content

Commit

Permalink
Merge pull request #2086 from guanlx/guanlx-patch-1
Browse files Browse the repository at this point in the history
Update errors.md to fix code example issue
andrueastman authored Aug 21, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 4693ab4 + cbc3d9e commit 74d64fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/errors.md
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ catch (ODataError odataError)
You can check the status code that caused the error as below.

```csharp
catch (ODataError odataError) when (odataError.ResponseStatusCode.Equals(HttpStatusCode.NotFound))
catch (ODataError odataError) when (odataError.ResponseStatusCode == (int)HttpStatusCode.NotFound)
{
// Handle 404 status code
}

0 comments on commit 74d64fc

Please sign in to comment.