Skip to content

Commit

Permalink
Markdown link syntax was backwards
Browse files Browse the repository at this point in the history
  • Loading branch information
bcardarella committed Dec 23, 2014
1 parent 3805ff5 commit 410ff66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion D_controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ For a list of valid content mime-types, please see the documentation from the pl

We can also set the HTTP status code of a response similarly to the way we set the content type. The `Plug.Conn` module, imported into all controllers, has a `put_status/2` function to do this.

`put_status/2` takes `conn` and either an integer or a "friendly name" used as an atom for the status code we want to set. Here is the list of supported [https://github.com/elixir-lang/plug/blob/master/lib/plug/conn/status.ex#L7-L63](friendly names).
`put_status/2` takes `conn` and either an integer or a "friendly name" used as an atom for the status code we want to set. Here is the list of supported [friendly names](https://github.com/elixir-lang/plug/blob/master/lib/plug/conn/status.ex#L7-L63).

Let's change the status in our `PageController` `index` action.

Expand Down

0 comments on commit 410ff66

Please sign in to comment.