Home / Function/ AbortWithStatusJSON() — gin Function Reference

AbortWithStatusJSON() — gin Function Reference

Architecture documentation for the AbortWithStatusJSON() function in context.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  cc834306_1977_a60f_27a8_d7292053266b["AbortWithStatusJSON()"]
  07635ba9_f986_e2ae_2897_ecc448b61faf["Abort()"]
  cc834306_1977_a60f_27a8_d7292053266b -->|calls| 07635ba9_f986_e2ae_2897_ecc448b61faf
  9c6f4db4_3d56_9165_ad9e_96feca54df85["JSON()"]
  cc834306_1977_a60f_27a8_d7292053266b -->|calls| 9c6f4db4_3d56_9165_ad9e_96feca54df85
  style cc834306_1977_a60f_27a8_d7292053266b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

context.go lines 230–233

func (c *Context) AbortWithStatusJSON(code int, jsonObj any) {
	c.Abort()
	c.JSON(code, jsonObj)
}

Domain

Subdomains

Frequently Asked Questions

What does AbortWithStatusJSON() do?
AbortWithStatusJSON() is a function in the gin codebase.
What does AbortWithStatusJSON() call?
AbortWithStatusJSON() calls 2 function(s): Abort, JSON.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free