Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Functional Programming
Diskuy-Backend
Commits
d65d4c4e
Commit
d65d4c4e
authored
Jan 25, 2021
by
Muhammad Rafif Elfazri
Browse files
add error view for bad request
parent
34d1a62f
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/diskuy_web/controllers/fallback_controller.ex
View file @
d65d4c4e
...
...
@@ -28,4 +28,10 @@ defmodule DiskuyWeb.FallbackController do
|>
render
(
DiskuyWeb
.
ErrorView
,
:"401"
)
end
def
call
(
conn
,
{
:error
,
:bad_request
})
do
conn
|>
put_status
(
:bad_request
)
|>
render
(
DiskuyWeb
.
ErrorView
,
:"400"
)
end
end
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment